Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Thanks for using this script
- This script is made by Joriangames/BloxianCode
- Want to know script explanation?
- Check the video here: https://youtu.be/Ji8_SmfGssg
- ]]
- game.Players.PlayerAdded:Connect(function(plr)
- local lead = Instance.new("Folder", plr)
- lead.Name = "leaderstats"
- local streak = Instance.new("IntValue", lead)
- streak.Name = "Streak"
- plr.CharacterAdded:Connect(function(char)
- local hum = char:WaitForChild("Humanoid")
- hum.Died:Connect(function()
- local tag = hum:FindFirstChild("creator")
- if tag then
- local killer = tag.Value
- killer.leaderstats.Streak.Value = killer.leaderstats.Streak.Value +1
- end
- streak.Value = 0
- end)
- end)
- end)
Add Comment
Please, Sign In to add comment