Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Events = game.ReplicatedStorage.Events
- local Debounce = {}
- Events.DiedFired.OnServerEvent:Connect(function(Player)
- if Debounce[Player] then return end
- Debounce[Player] = true
- local Lives = Player:WaitForChild("SystemFolder"):WaitForChild("Lives")
- Lives.Value -= 1
- Player.CharacterAdded:Connect(function()
- if Lives.Value == 0 then
- spawn(function()
- Player.Character.HumanoidRootPart.Position = game.Workspace.NoLifePart.Position
- end)
- end
- end)
- wait(.25)
- Debounce[Player] = nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement