heres what i have right now
game.Players.PlayerAdded:connect(function(p) local stats = Instance.new("IntValue", p) stats.Name = "leaderstats" local money = Instance.new("IntValue", stats) money.Name = "Xp" money.Value = 100 while true do wait(3) money.Value = money.Value + 1 print(money.Value) game.Players.PlayerAdded:connect(function(l) l.CharacterAdded:connect(function(c) c.Humanoid.JumpPower = money.Value end) end) end end)
I did my best to fix it. You must assign a new instance to a parent because it is automatically set to nil
. I also changes up some other stuff.
game.Players.PlayerAdded:connect(function(p) local stats = Instance.new("IntValue") stats.Name = "leaderstats" stats.parent = -- where ever you want it to be sent -- local money = Instance.new("IntValue") money.Name = "Xp" money.Value = 100 money.parent = -- where ever you want it to be sent -- end) while true do wait(3) money.Value = money.Value + 1 print(money.Value) c.Humanoid.JumpPower = money.value end