of     1   

8x0x1x1
#228365012Sunday, December 03, 2017 5:08 AM GMT

im trying to get it to change stats by one every second but it wont work. while (wait(1)) do local stats = Instance.new("IntValue", plr) stats.Name = "leaderstats" local lev = Instance.new("IntValue", stats) lev.Name = "Flying Points" lev.Value = +1 end
Negativize
#228365295Sunday, December 03, 2017 5:18 AM GMT

local stats = Instance.new("IntValue", plr) stats.Name = "leaderstats" local lev = Instance.new("IntValue", stats) lev.Name = "Flying Points" lev.Value = 0 while wait(1) do lev.Value = lev.Value + 1 end -- Should work
8x0x1x1
#228382255Sunday, December 03, 2017 3:49 PM GMT

didnt seem to work :thinking:
Denny9876
#228383512Sunday, December 03, 2017 4:14 PM GMT

Is this the whole script or is this just part of it? Because if it's the whole script, the whole leaderboard won't show up as it's not parented to the player. If you want to read more about leaderboards and how they work, click the link below : http://wiki.roblox.com/index.php?title=Leaderboard
8x0x1x1
#228383833Sunday, December 03, 2017 4:21 PM GMT

whole script
Denny9876
#228384082Sunday, December 03, 2017 4:26 PM GMT

You forgot to add several things for the leaderboard to work. Here's the fixed script : game.Players.PlayerAdded:Connect(function(plr) local stats = Instance.new("Model", plr) stats.Name = "leaderstats" local lev = Instance.new("IntValue", stats) lev.Name = "Flying Points" while (wait(1)) do lev.Value = lev.Value+1 end end)

    of     1