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)

2 comments
what is error
if you dont have an error print("hi") inside of the mouse click function if nothing prints, print at the top of the script if nothing prints there then your script isnt somewhere it can run