I added a Place teleport Gui and i tested it ingame studio and it works fine But when i go to the place itself it gives me a http://imgur.com/KMY6t8Q
s = game:service("TeleportService") id = 161936731 function onClicked() s:Teleport(id) end script.Parent.MouseButton1Click:connect(onClicked)
Explanation: The reason it worked in studio solo test mode is because it runs all scripts as if they were local and the way your attempting to teleport them would only work if the script was ran local, this is with the assumption your running your current code in a regular script.
Change the script to a local script and use this code.
function onClicked() game:GetService("TeleportService"):Teleport(161936731) end script.Parent.MouseButton1Click:connect(onClicked)