Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local function leaderboardSetup(player)
- local leaderstats = Instance.new("Folder")
- leaderstats.Name = "leaderstats"
- leaderstats.Parent = player
- local power = Instance.new("IntValue")
- power.Name = "Power"
- power.Value = 0
- power.Parent leaderstats
- local cash = Instance.new("IntValue")
- cash.Name = "Cash"
- cash.Value = 0
- cash.Parent = leaderstats
- local rebriths = Instance.new("IntValue")
- rebriths.Name = "Rebirths"
- rebriths.Value = 0
- rebriths.Parent = leaderstats
- end
- -- Connect the "leaderboardSetup()" function to the "PlayerAdded" event
- Players.PlayerAdded:Connect(leaderboardSetup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement