i am following a game teleporter tutorial and the code does not work? the problem is when you click you don't teleport the error in line 8?
code:
local Plr = game.Players.LocalPlayer
local Tps = game:GetService("TeleportService")
local Rs = game.ReplicatedStorage
script.Parent.MouseButton1Click:Connect(function()
Tps:SetTeleportGui(Rs:FindFirstChild("TeleportGui"))
Tps:Teleport(166986752,Plr)
end)

4 comments
Because you can only teleport players in a serverscript. Use a remote event to :FireServer and teleport the player.
can i get a exemple?
pls
https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events