Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BossHealth = script.Parent
- BossHealth.Changed:connect(function()
- local Players = game.Players:GetPlayers()
- if BossHealth.Value <= 0 then
- for i = 1, #Players do
- local Badge = game:GetService("BadgeService")
- Badge:AwardBadge(Players[i].userId, 0)
- end
- end
- end)
- game.Players.PlayerAdded:connect (function(Player)
- local leaderstats = Instance.new ("IntValue", Player)
- leaderstats.Name = "leaderstats"
- local Lives = Instance.new ("IntValue", leaderstats)
- Lives.Name = "BanPoints"
- Lives.Value = 20
- Player.CharacterAdded:connect(function()
- Player.Character.Humanoid.WalkSpeed = 12
- Player.Character.Humanoid.Died:connect(function()
- Lives.Value = Lives.Value - 4
- if Lives.Value <= 0 then
- Player:Kick("You have been banned for abusing in this game for 7 seconds")
- wait(1)
- Player:Kick("And also animescapetower banned you.")
- wait(1)
- Player:Kick("Admins will get you next time.")
- wait(5)
- Player:Kick("Ok you can rejoin now.")
- end
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement