Leaderboards: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
Removed useless linebreak tag and fixed linebreaks.
>Trappingnoobs (Fixed the code blocks.) |
>Trappingnoobs (Removed useless linebreak tag and fixed linebreaks.) |
||
Line 116: | Line 116: | ||
<pre> | <pre> | ||
Leaderstats = {"Eggs","Chickens","Pies"} | Leaderstats = {"Eggs","Chickens","Pies"} | ||
function Leaderstats(Player) | function Leaderstats(Player) | ||
LsA = Instance.new("IntValue",Player) | LsA = Instance.new("IntValue",Player) | ||
LsA.Name = "leaderstats" | LsA.Name = "leaderstats" | ||
for i = 1, #Leaderstats do | for i = 1, #Leaderstats do | ||
local x = Instance.new("IntValue",LsA) | local x = Instance.new("IntValue",LsA) | ||
x.Name = Leaderstats[i] | x.Name = Leaderstats[i] | ||
end | end | ||
end | end | ||