local play = game.Players.LocalPlayer
local char = play.Character
local hum = char:WaitForChild("Humanoid")
if hum.Jump == true then hum.WalkSpeed = 16
elseif
hum.Jump == false then hum.WalkSpeed = 0
end
I have tried this script:
It doesn't seem to be working, does anyone know what I'm doing wrong?

2 comments
Please use a code block.
And for the character variable you should be using char = play.Character or play.CharacterAdded:Wait() to ensure that the character has loaded in.