ShadowBladeX

Simple Leaderstats

Apr 21st, 2024 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | Source Code | 0 0
  1. -- ONLY CHANGE THE NAME AND VALUE IF YOU DON'T KNOW WHAT YOU ARE DOING!!
  2. game.Players.PlayerAdded:Connect(function(player)
  3.     local leaderstats = Instance.new("Folder")
  4.     leaderstats.Name = "leaderstats"
  5.     leaderstats.Parent = player
  6.  
  7.     local points = Instance.new("IntValue")
  8.     points.Name = "Points" -- Name of the currency (Change this to your currency name like money)
  9.     points.Value = 0 -- Value (How much you wan't the player to start with)
  10.     points.Parent = leaderstats
  11.  
  12.     local currency = Instance.new("IntValue")
  13.     currency.Name = "Currency" -- Name of the currency (Change this to your currency name like money)
  14.     currency.Value = 100 -- value (How much you wan't the player to start with)
  15.     currency.Parent = leaderstats
  16.  
  17. end)
  18.  
Tags: Roblox lua
Advertisement
Add Comment
Please, Sign In to add comment