Hello, I’m a medium experienced builder and a miserable scripter.
I want to know how I can create a TextButton (screen GUI) what if clicked, will teleport you into another game. For example: you are in game A, and if you click this button it teleports you into game B.
I really have no clue what I should do about this, I just don’t understand scripting.
25 Likes
simple as that in localscript inside button:
script.Parent.MouseButton1Down:Connect(function()
game:GetService("TeleportService"):Teleport(000000) -- your game id here
end)
I hope this helps.
31 Likes
u need to make a local script in a Text button:
script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(UR_PLACE_ID)
end)
hope this works!
3 Likes
if this dont work use:
script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer,UR_PLACE_ID)
end)
3 Likes
The solution to your problem could have been easily found through searching, there are plently of resources on this topic
( i am just giving two)
3 Likes
Thank you, it works. I really appreciate your help.
3 Likes
Thank you for your post too. I appreciate your help.
3 Likes
Actually I searched there too, and I didn’t really find the solution. Maybe I just didn’t search good enough. But I still appreciate that you tried to help.
3 Likes
none of these worked for me???
7 Likes
clickdectector version?
30 3321343
2 Likes