I made an obby stage where there are falling stones and the player has to get through them before they fall on the ground again. But if they get hit from the bottom face of the rock, they will die. If I would use a touch event on the stone, the player would also die if they touched it from the side. So I added a really thin part on the bottom face and if they touch that they will die. The only problem is, that the thin part doesn't move with the big rock. Notice that both my big rock and my thin part are anchored
This is normal This is when the part is moving in-game
I've tried using WeldConstraints, Welds, Motor6Ds, Attachments etc. But nothing really worked. Am I too dumb or should I do something completely different?
Or should I just use a model?
Darrian wanted to see my code so here it is (I'm using TweenService):
coroutine.resume(coroutine.create(function()
while true do
task.wait(math.random(0.4,0.6))
local FallTween = TweenService:Create(
Stone,
TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, false),
{
['Position'] = Vector3.new(Stone.Position.X, Stone.Position.Y - moveDistance, Stone.Position.Z)
}
)
FallTween:Play()
FallTween.Completed:Wait()
task.wait(1)
local GoUpTween = TweenService:Create(
Stone,
TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false),
{
['Position'] = Vector3.new(Stone.Position.X, Stone.Position.Y + moveDistance, Stone.Position.Z)
}
)
GoUpTween:Play()
GoUpTween.Completed:Wait()
end
end))
(By the way for these people who say I shouldn't use links for images, Stack Overflow doesn't allow me to embed images)