Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Player never stays on rotating part?

I want a player to stay on a rotating part instead of them falling off, how do I do this?

1 answer

You can easily do this yourself using welds.

--If filtering enabled is on then this should be a script with a Touched event.
--If filtering enabled is disabled then leave this as a localscript

part = Instance.new("Part", workspace)
weld = Instance.new("Weld", part)
local humanoid = Player.Character:WaitForChild("Humanoid")

  if (humanoid.RigType == Enum.HumanoidRigType.R15) then
		weld.Part0 = Player.Character["LeftFoot"]
		weld.Part1 = part
      elseif (humanoid.RigType == Enum.HumanoidRigType.R6) then
         	weld.Part0 = Player.Character["Left Leg"]
		weld.Part1 = part
      end

Let me know if this works well. I'm pretty interested and I haven't actually tested yet.

4 comments

0

@oftenz I'm a bit confused with your script. It seems like it would only work with one body part and it also looks like it doesn't function well with R15.

0

Here I'll update it but it's the same for R15

0

I'll test it out tomorrow, do I have to rename any parts or just put the script into the part and it will work smoothly?

0

No you can edit the script. Change part to your part that is rotating.

This discussion is preserved as it was. New answers, comments, and votes are closed.