I unbinded the jump function to disable jumping, now I need to “rebind” it back. Seems like you can’t rebind it back if you don’t have a function for it to do. How would I rebind it to the default jumping function? I tried to just set humanoid.Jump equal to true, but it still doesn’t jump.
SCRIPT:
local function jump(actionName, inputState, inputObj) -- the function
if inputState == Enum.UserInputState.Begin then
Humanoid.Jump = true
end
end
Combat.OnClientEvent:Connect(function()
prevTime = currTime
local attackanim = Humanoid:LoadAnimation(anims[count])
attackanim:Play()
wait(cd)
Attacking.Value = false
game:GetService("ContextActionService"):BindAction("jumpAction", jump, false, Enum.KeyCode.Space) -- "rebinding" the function