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

My script to move the player doesn't work?

So, I'm trying to move a player somewhere when the touch a part named "Hitbox" and I made this but it doesn't work... And idk why..

function inHitbox (Player)
	Player.Parent.Torso:MoveTo (script.Parent.Parent.MainPart.Position)
end

script.Parent.Touched:connect(inHitbox)

1 answer

✓ Accepted answer

I believe MoveTo is a function for models that moves the PrimaryPart of that model to the designated Vector3 position, so you'd just do Player.Parent instead of Player.Parent.Torso.

1 comment

0

Well if that is the case, what is the purpose of :SetPrimaryPartCFrame()?

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