Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Community Leaderboard script loaded")
- function onPlayerEntered(newPlayer)
- local stats = Instance.new("IntValue")
- stats.Name = "leaderstats"
- local lvlup = Instance.new("Sound")
- lvlup.SoundId = 'rbxassetid://341542294'
- lvlup.Name = 'LvlUp'
- local mins = Instance.new("IntValue")
- mins.Name = "Gold"
- mins.Value = 0
- local lvl = Instance.new("IntValue")
- lvl.Name = "Level"
- lvl.Value = 1
- local XP = Instance.new("IntValue")
- XP.Name = "XP"
- XP.Value = 0
- local dmg = Instance.new("IntValue")
- dmg.Name = "dmg"
- dmg.Value = 1
- local Pnts = Instance.new("IntValue")
- Pnts.Name = "Points"
- Pnts.Value = 0
- local handling = Instance.new("IntValue")
- handling.Name = 'HND'
- handling.Value = 5
- local nedXP = Instance.new("IntValue")
- nedXP.Name = "nedXP"
- nedXP.Value = 60
- local Health = Instance.new("IntValue")
- Health.Name = "HP"
- Health.Value = 80
- local Spd = Instance.new("IntValue")
- Spd.Name = "Speed"
- Spd.Value = 16
- mins.Parent = stats
- stats.Parent = newPlayer
- lvl.Parent = stats
- nedXP.Parent = stats
- XP.Parent = stats
- dmg.Parent = stats
- Pnts.Parent = stats
- Health.Parent = stats
- handling.Parent = stats
- Spd.Parent = stats
- lvl.Changed:connect(function()
- lvlup:Play()
- end)
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement