Group game's place teleporter doesn't work

this should be the initial working script :smiley:

local debounce = true

function onTouched(hit)
if debounce == true then
debounce = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService(“TeleportService”):Teleport(5558713850,player)
wait(0.2)
debounce = true
end
end
end

script.Parent.Touched:connect(onTouched)

1 Like