so i create the GUI screen teleported but when im trying it on studio it work but it doesnt work on server.
teleport = game:GetService("TeleportService") place = 1243953879 button = script.Parent button.MouseButton1Click:connect(function(p) teleport:Teleport(place,p) end)
teleport = game:GetService("TeleportService") place = 1243953879 button = script.Parent local player = game.Players.LocalPlayer -- You forgot the LocalPlayer also don't put this in an server script! button.MouseButton1Click:connect(function(p) teleport:Teleport(place,player) end)
Hope i helped you out :)