debounce = false
script.Parent.Touched:connect(function(hit)
if debounce or not hit.Parent.ClassName=="Model" or not hit.Parent:FindFirstChild("Humanoid") or not game.Players:FindFirstChild(hit.Parent.Name) then return end
debounce = true
local save_pos = hit.Parent.PrimaryPart.CFrame
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr:LoadCharacter()
plr.Character:SetPrimaryPartCFrame(save_pos)
plr.Character.ForceField:Destroy()
wait(1)
debounce = false
end) |