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 4 years ago
Edited 4 years ago

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

the code:

1local player = game:GetService("Players").LocalPlayer
2local TP = game:GetService("TeleportService")
3 
4script.Parent.MouseButton1Click:Connect(function()
5    TP:Teleport(placeid, player)
6end)

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 — 4y
0
a server script CatastrophicDinosaur 4 — 4y
0
oh wait nevermind i found a fix CatastrophicDinosaur 4 — 4y

Answer this question