of     2   
chevron_rightchevron_rightchevron_right

LegendaryAccount
#139539868Monday, July 07, 2014 4:37 PM GMT

function CreateStats(NewPlayer) local MainStats = Instance.new("IntValue") MainStats.Name = "leaderstats" MainStats.Value = 0 local PointsValue = Instance.new("IntValue") PointsValue.Name = "Score" PointsValue.Value = 0 PointsValue.Parent = MainStats MainStats.Parent = NewPlayer return MainStats end game.Players.ChildAdded:connect(CreateStats) that is the script but I am having trouble adding Wins to it
LegendaryAccount
#139555017Monday, July 07, 2014 7:10 PM GMT

bump
LegendaryAccount
#139557628Monday, July 07, 2014 7:35 PM GMT

bump?
jode6543
#139557918Monday, July 07, 2014 7:38 PM GMT

Create another IntValue, then parent it to leadersrats. ~Jode
LegendaryAccount
#139560641Monday, July 07, 2014 8:06 PM GMT

tried to
LegendaryAccount
#139561800Monday, July 07, 2014 8:17 PM GMT

:/
warspyking
#139562397Monday, July 07, 2014 8:22 PM GMT

stats = {"Points", "Stat"} --Change Stat, feel free to add more. game.Players.PlayerAdded:connect(function(p) local l = Instance.new("Model", p) l.Name = "leaderstats" for _,v in pairs(stats) do local stat = Instance.new("IntValue", l) stat.Name = v stat.Value = 0 end end)
lostend
#139563175Monday, July 07, 2014 8:30 PM GMT

local stats={ KOs={['Name']='KOs';['Type']='IntValue';}; Wipeouts={['Name']='Wipeouts';['Type']='IntValue';};--copy and paste this to add new stats. Change Name and Type to what you want. } game:service'Players'.PlayerAdded:connect(function(p) main=Instance.new('IntValue',p) main.Name='leaderstats' for i=1,#stats do local stat=Instance.new(stats[i].Type,main) stat.Name=stats[i].Name end end)
warspyking
#139563566Monday, July 07, 2014 8:33 PM GMT

@cool Overcomplicating, and by the way, :service is deprecated.
LegendaryAccount
#139563836Monday, July 07, 2014 8:35 PM GMT

that does not work cool
lostend
#139563886Monday, July 07, 2014 8:36 PM GMT

Still works, and it is shorter than GetService. Same with :children() And yeah, I probably did over complicate it. :P
lostend
#139564024Monday, July 07, 2014 8:37 PM GMT

{\rtf1\ansi\ansicpg1252 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;} \deftab720 \itap1\trowd \taflags0 \trgaph108\trleft-108 \trbrdrt\brdrnil \trbrdrl\brdrnil \trbrdrt\brdrnil \trbrdrr\brdrnil \clvertalt \clshdrawnil \clwWidth13420\clftsWidth3 \clmart10 \clmarl10 \clmarb10 \clmarr10 \clbrdrt\brdrnil \clbrdrl\brdrnil \clbrdrb\brdrnil \clbrdrr\brdrnil \clpadt60 \clpadl60 \clpadb60 \clpadr60 \gaph\cellx8640 \pard\intbl\itap1\pardeftab720\sl380\ IT DOESNT WORK? :O
lostend
#139564089Monday, July 07, 2014 8:37 PM GMT

Um ignore that.
LegendaryAccount
#139564106Monday, July 07, 2014 8:37 PM GMT

I pasted that into a script and it did not show wipeouts and kos as it showed
lostend
#139564306Monday, July 07, 2014 8:39 PM GMT

Output?
warspyking
#139564930Monday, July 07, 2014 8:44 PM GMT

@cool It's still deprecated.
warspyking
#139565009Monday, July 07, 2014 8:45 PM GMT

@OP Use mine.
lostend
#139565218Monday, July 07, 2014 8:47 PM GMT

Deprecated or not, service is shorter.
warspyking
#139565428Monday, July 07, 2014 8:49 PM GMT

It's still deprecated though. So don't use it.
LegendaryAccount
#139565534Monday, July 07, 2014 8:50 PM GMT

there is no output
Lacryma
#139565819Monday, July 07, 2014 8:52 PM GMT

@war let him do w/e he wants, you barely know lua yet you're trying to argue with someone else.
warspyking
#139565836Monday, July 07, 2014 8:52 PM GMT

Use mine.
warspyking
#139565931Monday, July 07, 2014 8:53 PM GMT

Duel, even you must know that you shouldn't use things that are deprecated. That is basic Lua.
lostend
#139566275Monday, July 07, 2014 8:56 PM GMT

I know I should use what I prefer. I prefer service over GetService. I'll stop using it once it stops working.
LegendaryAccount
#139566289Monday, July 07, 2014 8:56 PM GMT

war does work the best

    of     2   
chevron_rightchevron_rightchevron_right