Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

i need help with my place teleportation gui?

Asked by 10 years ago

I really need help with a script i am working on. It is supposed to allow players to teleport to different places on roblox. I need one that teleports a player to a place that is not part of a game and is not the owner

This is the current code i have.

function teleport() player = script.Parent.Parent.Parent.Parent.Parent.Character game:GetService("TeleportService"):Teleport(place id here, player) end script.Parent.MouseButton1Click:connect (teleport)

I need help to let players to teleport to a place that is not part of a game.

Please help.

also this is for a game i am making. i want players to be able to add places to my gui so other players can teleport to it

2 answers

Log in to vote
-1
Answered by 10 years ago
PlaceID = 000 --The place ID where you want to teleport them
script.Parent.MouseButton1Click:connect(function() 
game:GetService("TeleportService"):Teleport(PlaceID)
end
--PUT THIS IN A LOCALSCRIPT!!!
Ad
Log in to vote
-1
Answered by 10 years ago

thanks

0
no problem fahmisack123 385 — 10y

Answer this question