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

How do I make a click teleporter?

Basically I want to make an elevator that has buttons and when you click them you get teleported up a floor or down a floor.

1 answer

✓ Accepted answer

Use the Model:MoveTo(Vector3) function for that. It teleports the specified model (in this case the player's character) to the specified Vector3.

Connect to the ClickDetector's MouseClick event to detect the click.

Update:

Insert a ClickDetector into the part that is clicked. Insert the following Script into the ClickDetector:

script.Parent.MouseClick:Connect(function(plr)
	plr.Character:MoveTo(Vector3.new(X, Y, Z))
end)

For X, Y and Z add the coordinates the player should be teleported to.

2 comments

1

Can you ecxplain what to do further? I am an idiot

0

ty!

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