So I am making something for my friend’s game where you control a ball, and I want it to attach the player to the top, in a way where it wont rotate with it but it will stay on top of the ball.
I want the player to stay on that exact area on top of the ball, even if the ball rotates
because if it rotates it looks like this
part.Position = ball.Position + Vector3.new(0,5,0)
I know but I want it to not look janky, is there any constraints that do what I want?
you can use align position, lerping the character (i reccomend)
there are also a ton of bodymovers you can use, although i don’t reccomend it, it would work.
alright because I thought about looping the positioning and it would look very janky, I’ll let you know if I figure something out
I can provide you what i would do.
Character:SetPrimaryPartCFame(Character.PrimaryPart.CFrame:Lerp(Ball.CFrame*CFrame.new(0,5,0),0.1))
(Btw, do you know xaicracker?)
Yes, I do. He’s my friend. Gaming
God damn, what a coincidence, that’s kinda crazy lol.
This wouldn’t work because “SetPrimaryPartCFame” is spelt incorrectly, not sure what you’re trying to achieve with that lerp either.
Character:PivotTo(Ball.CFrame * CFrame.new(0, Ball.Size.Y/2, 0))
I’d recommend using the up to date “:PivotTo()” instance method instead.
The lerp is to make it more smooth, and it was more of a suggestion to what he should do, anyways i messaged him on discord and helped him solve his problem.