Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make a Player Stick To a Rotating Model?

Asked by 4 years ago

I am trying to make it so the player sticks to a spinning object but i'm unsure how, I look at this but it Doesnt Work. Here is my current script that rotates the model:

while wait(0.01) do
    script.Parent.Parent:SetPrimaryPartCFrame(script.Parent.Parent.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(1), 0))
end

Please HALP

2 answers

Log in to vote
0
Answered by 4 years ago

A better approach would be to just weld the player to the actual model. WeldConstraints are easy to use and all you have to do is set the Part0 and Part1 to the specified objects. You'd have to set the character to the desired CFrame and they will stick.

0
Your totally avoiding my question dude Gooncreeper 98 — 4y
0
Oh sorry I didn't see the attached link. You could use an AlignOrientation and set the Attachment0 to the HumanoidRootPart, as well as set the Attachment1 to the rotating Part. This will keep the player at the same rotation as the part. Nickuhhhhhhhhhhhhhhh 834 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

A simple way is to just use a chair

0
shut up Gooncreeper 98 — 4y
0
I was trying to help but ok mcslimeman 37 — 4y

Answer this question