I'm trying to make it so you can teleport to other games but I don't know how to do it. I need to do this to group the good with bad.
✓ ANSWER ACCEPTED
How do you make a teleport GUI?
2 answers
✓ Accepted answer
s = game:service("TeleportService")
id = "ID Goes Here (numbers at end of address bar of a game)"
function onClicked()
s:Teleport(id)
end
script.Parent.MouseButton1Click:connect(onClicked)
put it in a local script in an image button! :D
@Above I think he meant teleporting players around the map, with CFrame and Vector3.
Here's how you would make a player teleport to a spawn or something, through GUI, do this:
torso = script.Parent.Character.Torso -- Do script.Parent until you get to the StarterGui folders parent
function clickked(GUI)
torso.CFrame = CFrame.new(Vector3.new(Go to the block you want them to tp to, and copy the position))
end
script.Parent.MouseButton1Down:connect(clickked) --I'm assuming the script is inside the TextButton.
This discussion is preserved as it was. New answers, comments, and votes are closed.
