Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerentered(newPlayer)
- local stats = Instance.new("IntValue")
- stats.Name = "leaderstats"
- local BattleCoins = Instance.new("IntValue")
- -- Rename battle coins to your currency
- BattleCoins.Name = "Battle Coins")
- BattleCoins.Value = 0
- BattleCoins.Parent = stats
- stats.Parent = newPlayer
- end
- game.Player.ChildAdded:Connect(playerentered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement