Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(Player)
- local leaderstats = Instance.new("Folder")
- leaderstats.Name = "leaderstats"
- leaderstats.Parent = Player
- local Value = Instance.new("IntValue")
- Value.Name = "Points" -- This is going to be your primary value of the game. This is also going to be used to buy new items. Change it to whatever you want!
- Value.Parent = leaderstats
- Value.Value = 0
- local Value2 = Instance.new("IntValue")
- Value2.Name = "Rebirths" -- Rebirths aren't required for simulators. This is just an extra necessity that you can use in the game.
- Value2.Parent = leaderstats
- Value2.Value = 0
- end)
- -- Our leaderstats script will be used to create that little billboard thing at the top right of your screen where it displays the player.
- -- Next to our names, it'll show our main value and our secondary value, in my case, it's Points and Rebirths.
- -- If you don't want this to be shown, remove the "Value.Parent = leaderstats" line. This won't show it at the top right but will still be stored and scored.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement