Problem with proximity prompt

i have a problem with proximity prompt in my game. Here’s the script local pp = script.Parent
local tpservice = game:GetService(“TeleportService”)
local player = game.Players.LocalPlayer

pp.Triggered:Connect(function()
tpservice:Teleport(14651344381, player)
end)
there doesn’t seem to be any error in the output but for some reason it just doesnt work.

1 Like

Is this script in the workspace? Local scripts only work whenever they are in a character or in a player.

1 Like

yes it is, and thank you! i didn’t know that local scripts only work in a player

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.