Hasli4

RBLX. Leadearboard

May 12th, 2025
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local function leaderboardSetup(player)
  3.     game.Workspace.Data.Player.Value = player
  4. local char = game.Workspace:WaitForChild(player.Name)
  5.     local leaderstats = Instance.new("Folder")
  6.     leaderstats.Name = "leaderstats"
  7.     leaderstats.Parent = player
  8.     local gold = Instance.new("IntValue")
  9.     gold.Name = "Coins"
  10.     gold.Value = 0
  11.     gold.Parent = leaderstats
  12.     local exp = Instance.new("IntValue")
  13.     exp.Name = "Exp"
  14.     exp.Value = 0
  15.     exp.Parent = leaderstats
  16. end
  17. Players.PlayerAdded:Connect(leaderboardSetup)
  18.  
  19.  
Add Comment
Please, Sign In to add comment