local TeleportService = game:GetService("TeleportService")
local place = 10707384690
script.Parent.MouseButton1Down:Connect(function(plr)
TeleportService:Teleport(place, plr)
end)
and also in the dev console it said unable to cast value to object
What you are needing to do is this
s = game:service("TeleportService") id = 6736051032--Put ur id of game function onClick() s:Teleport(id) end script.Parent.MouseButton1Click:connect(onClick)
Put script in a button in gui Go to your game settings and make sure Allow third party teleport is on