hello i am new to scripting, so i want to change the player of jumppower to the value in the leaderboard. the script looks bad but hope i can get solved
game.Players.PlayerAdded:connect(function(player)
while wait(2) do
local character = player.Character:WaitForChild("Humanoid")
local jumppower = player.leaderstats.Jump.Value
character.JumpPower = jumppower
end
end)
here it is but it is not working. i put it in the workspace. it is a normal script.

1 comment
Workspace.Script:4: attempt to index field 'JumpPower' (a number value)