debounce = false
local TeleportToRing1 = game.workspace.World1
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
end
if hit and hit.Parent and hit.Parent.Humanoid and hit.Parent.CurrentlyTeleporting.Value == false then
local Character = hit.Parent
local teleportLocation = CFrame.new(TeleportToRing1.CFrame.X, TeleportToRing1.CFrame.Y + 5, TeleportToRing1.CFrame.Z)
Character:SetPrimaryPartCFrame(teleportLocation)
local teleportingValue = Character.CurrentlyTeleporting
teleportingValue.Value = true
teleportingValue.Value = false
end
debounce = false
local TeleportToRing1 = game.workspace.World1
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
end
if hit and hit.Parent and hit.Parent.Humanoid and hit.Parent.CurrentlyTeleporting.Value == false then
if game.Players:GetPlayerFromCharacter(hit.Parent).leaderstats.Rebirths.Value >= 5 then
local Character = hit.Parent
local teleportLocation = CFrame.new(TeleportToRing1.CFrame.X, TeleportToRing1.CFrame.Y + 5, TeleportToRing1.CFrame.Z)
Character:SetPrimaryPartCFrame(teleportLocation)
local teleportingValue = Character.CurrentlyTeleporting
teleportingValue.Value = true
teleportingValue.Value = false
end
end
end)