Advertisement
OnFireRobloxScriptin

Click for Stats leaderstats Script

Sep 30th, 2024
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player) --When the player joins the game
  2.     player.CharacterAdded:Wait() --Wait for the player's character to load
  3.     --//leaderstats
  4.     local leaderstats = Instance.new("Folder", player) --Create a folder and put it under the player
  5.     leaderstats.Name = "leaderstats" --Name that folder "leaderstats" <- DON'T CHANGE THIS
  6.    
  7.     --//Values
  8.     local clicks = Instance.new("IntValue", leaderstats) --Create an IntValue and put it under the leaderstats
  9.     clicks.Name = "Clicks" --Name that IntValue "Clicks"
  10.     clicks.Value = 100 --Give starting stats for that value (Change 100 to how much of this stat you want players to start with)
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement