Answered by
6 years ago Edited 6 years ago
Use humanoid.Changed:Connect(function() ... end)
you can see more here: Roblox Wiki - Changed
Here is a example:
1 | workspace.Baseplate.Changed:Connect( function () |
2 | print ( "Baseplate changed!" ) |
Here is your fixed script:
01 | game.Players.PlayerAdded:Connect( function (player) |
03 | local leaderstats = Instance.new( 'Model' ) |
04 | leaderstats.Name = 'leaderstats' |
05 | leaderstats.Parent = player |
06 | local JumpPower = Instance.new( 'IntValue' ) |
07 | local char = player.Character or player.CharacterAdded:Wait() |
08 | local hum = char.Humanoid |
09 | JumpPower.Value = hum.JumpPower |
10 | JumpPower.Parent = leaderstats |
11 | JumpPower.Name = 'Score' |
12 | hum.Changed:Connect( function () |
13 | JumpPower.Value = hum.JumpPower |
Hope it helped :D
Errors? tell-me on comments.