Advertisement
OnFireRobloxScriptin

Cash leaderstats

Jul 7th, 2024 (edited)
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. --//leaderstats
  2. game.Players.PlayerAdded:Connect(function(player) --When player joins the game
  3.     player.CharacterAdded:Wait() --Waits for the player's character to load
  4.  
  5.     local leaderstats = Instance.new("Folder", player) --Creates new folder and puts it under the player
  6.     leaderstats.Name = "leaderstats" --Names the folder "leaderstats"
  7.    
  8.     local Cash = Instance.new("IntValue", leaderstats) --Creates new Intvalue and puts it under the leaderstats folder
  9.     Cash.Name = "Cash" --Names the IntValue "Cash" <- You can change Cash to any currency you like
  10.     Cash.Value = 100 --Gives the player 100 starting "Cash"
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement