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

Can some on help me fix this teleporting gui script?

function click()

script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame=CFrame.new(Vector3.new(211.331, 5.061, -211.082))

end

script.Parent.MouseButton1Down:connect(click)

1 answer

✓ Accepted answer

Try this:

Also, Vector3.new has 3 arguments, so where I placed the comment, make a brick where you want to move the player to, copy the position, and paste it where it says 0,0,0.

script.Parent.MouseButton1Down:connect(function()
	game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0,0,0))  -- here
end)

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