KashTheKingYT

Coins Leaderstats Script

Jun 29th, 2023
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local players = game:GetService("Players")
  2. function playerAdded(player)
  3.     local leaderstats = Instance.new("Folder")
  4.     local coins = Instance.new("IntValue")
  5.     coins.Name = "Coins"
  6.     leaderstats.Name = "leaderstats"
  7.    
  8.     coins.Parent = leaderstats
  9.     leaderstats.Parent = player
  10. end
  11.  
  12. players.PlayerAdded:Connect(playerAdded)
Advertisement
Add Comment
Please, Sign In to add comment