My game is having an issue with the teleport between places. At first, It was worked perfectly fine but suddenly, it doesn’t teleport to the place. This issue is been occurring for 3 days now and yet still the same.
local Prompt = script.Parent.ProximityPrompt
local TP = game:GetService("TeleportService")
Prompt.Triggered:Connect(function(player)
if player then
TP:Teleport(id, player)
end
end
local prompt = script.Parent.ProximityPrompt
local tp = game:GetService('TeleportService')
local id = --ID here
prompt.Triggered:Connect(function(player)
local success, err = pcall(function()
tp:Teleport(id, player)
end)
if success then
return
end
if err then
warn(err)
end
end)