Advertisement
OnFireRobloxScriptin

Cash leaderstats

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