Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RESPAWN_DURATION = 3
- local Players = game:GetService("Players")
- local ServerStorage = game:GetService("ServerStorage")
- local function onTouched(other)
- if (other.Name == "HumanoidRootPart"
- or other.Name == "Cannon") then
- local playerName = tostring(other.Parent)
- local player = Players[playerName]
- local enemyStat =
- player.leaderstats:WaitForChild("Score")
- local looseStat =
- player.leaderstats:WaitForChild("Loose")
- looseStat.Value += 1
- enemyStat.Value = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement