i keep of trying with this code
local teleporting = false
script.Parent.Touched:connect(function(hit) if hit.Parent then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then if not teleporting then teleporting = true game:GetService("TeleportService"):Teleport(346211210,player) wait(5) teleporting = false end end end end)
can anyone tell me what i have wrong or what i should change?

4 comments
How are you testing this code?
on the roblox studios
ad on the actual game
and*