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

[SOLVED] How to fix "Invalid player to teleport." error?

Asked by 3 years ago
Edited 3 years ago

i want to teleport the player to another place but it won't work

the code:

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

script.Parent.MouseButton1Click:Connect(function()
    TP:Teleport(placeid, player)
end)

the placeid is the place id i have in my game not local placeid

0
Is this script a local script or a server script Omq_ItzJasmin 666 — 3y
0
a server script CatastrophicDinosaur 4 — 3y
0
oh wait nevermind i found a fix CatastrophicDinosaur 4 — 3y

Answer this question