Basically I made a GUI with a button named "Play" and when you press it you get transferred to another game. But its not working. Any help?
script.Parent.MouseButton1Click(function() local gameID = 4725259427 game:GetService("TeleportService"):Teleport(gameID) end)
When teleporting you need the actual player.
script.Parent.MouseButton1Click(function() local gameID = 4725259427 game:GetService("TeleportService"):Teleport(gameID, put_player_id_here) end)