I need it so that when some CLICKS my text button, it takes them into a different game. The script I am using takes them into a different game right as they join. what am I doing wrong? please help! Also where do I put the script and what kind of script?
this didn't work when i put this in the text button.
game:GetService("TeleportService"):Teleport(475048432)
what do I do?
You need something to tell when a player clicks (An Event)
Lets say I have a local script inside the button.
1 | script.Parent.script.Parent.MouseButton 1 Click:connect( function () -- Check if a person clicks it with a mouse |
2 | -- Code goes here |
3 | end ) |
http://wiki.roblox.com/index.php?title=API:Class/TextButton
If you scroll all the way down, you can see events and explore how they all work.
Hope this helps!