function playerAdded(plr) local stats = Instance.new("IntValue", plr) stats.Name = "leaderstats" local money = Instance.new("IntValue", stats) money.Name = "Jump Power" money.Value = game.Players.LocalPlayer.Character.Humanoid.JumpPower end game.Players.PlayerAdded:connect(playerAdded)
Hello, jalbraek!
Try this:
function playerAdded(plr) repeat wait() until plr.Character --Waits for player character local stats = Instance.new("Folder") --Leaderstats is a folder, not a IntValue and the Parent property of the Instance.new is deprecated.. you should not use it stats.Name = "leaderstats" stats.Parent = plr local money = Instance.new("IntValue") -- The parent property of the Instance.new is deprecated.. you should not use it money.Name = "Jump Power" money.Value = plr.Character.Humanoid.JumpPower money.Parent = stats plr.Character.Humanoid.Changed:Connect(function() --Makes it update on changed(I saw you want it on the duplicate of this question) money.Value = plr.Character.Humanoid.JumpPower end) end game.Players.PlayerAdded:connect(playerAdded)
Good Luck with your games