of     1   

Alend43
#224376431Tuesday, August 29, 2017 2:32 AM GMT

title
orange451
#224376464Tuesday, August 29, 2017 2:33 AM GMT

game.Players.LocalPlayer.leaderstats
HeIIoISteaIUsernames
#224376472Tuesday, August 29, 2017 2:33 AM GMT

game.Players.LocalPlayer.leaderstats ??
dj7679
#224376556Tuesday, August 29, 2017 2:36 AM GMT

Use a local script --In local script player = game.Players.LocalPlayer leaderboard = Instance.new("IntValue",player) leaderboard.Name = "leaderstat" -- This name is required --In any other script game.Players.PlayerAdded:connect(function(player) playerleaderstat = player.leaderstat end) Not 100% sure its correct but you can test it out to see.
Alend43
#224376614Tuesday, August 29, 2017 2:38 AM GMT

I just want to know what to put in a script to Find the leaderstats. I already have the leaderstats.
Em_ily
#224376757Tuesday, August 29, 2017 2:42 AM GMT

:FindFirstChild('leaderstats')
Alend43
#224376894Tuesday, August 29, 2017 2:47 AM GMT

Ok, I have this local player = game.Players.LocalPlayer local cash = player:FindFirstChild("leaderstats"):WaitForChild("Cash") It says on local cash, Im trying to index a nil value. Which value is the nil 1?
Em_ily
#224376925Tuesday, August 29, 2017 2:48 AM GMT

Probably Cash, do you have a Value for Cash in another script?
Em_ily
#224376971Tuesday, August 29, 2017 2:49 AM GMT

Ah, and use a local script.
gohan31865
#224377053Tuesday, August 29, 2017 2:51 AM GMT

try using :waitforchild for both of them instead of having the first one be :findfirstchild
Alend43
#224377064Tuesday, August 29, 2017 2:52 AM GMT

I do have Cash in the players leaderstats, I checked and it is in a local script .-.
dj7679
#224377094Tuesday, August 29, 2017 2:52 AM GMT

game.Players.PlayerAdded:connect(function(player) leaderboard = Instance.new("IntValue",player) leaderboard.Name = "leaderstat" cash = Instancenew("IntValue",leaderstat) cash.Name = "Cash" end) This should run fine. You have to parent cash to the leaderstat.
Alend43
#224377118Tuesday, August 29, 2017 2:53 AM GMT

Yes thank you, Using wait for child for both of them worked!

    of     1