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.
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.
Closed as Not Constructive by evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?