Advertisement
xyreff

Leaderboard Script

Apr 6th, 2024
1,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | Gaming | 0 0
  1. function playerentered(newPlayer)
  2.     local stats = Instance.new("IntValue")
  3.     stats.Name = "leaderstats"
  4.    
  5.     local BattleCoins = Instance.new("IntValue")
  6.     -- Rename battle coins to your currency
  7.     BattleCoins.Name = "Battle Coins")
  8.     BattleCoins.Value = 0
  9.    
  10.     BattleCoins.Parent = stats
  11.     stats.Parent = newPlayer
  12. end
  13. game.Player.ChildAdded:Connect(playerentered)
  14.    
  15.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement