Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Teleport Script with TeleportService Not working?

Asked by 2 years ago

So im trying to make a teleport script that teleports to another place and for whatever reason i keep geting errors :

local TeleportService = game:GetService("TeleportService")
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
    TeleportService:Teleport(6945240687, player)
end)

The local script is located in a text button named "PlayButton" I checked the id and its the right id, the place is created, i don't know whats wrong.

Answer this question