I could've swore this would work in the past. Even manually clicking the button for jump in Humanoid.Jump doesn't make me jump.
uis.InputBegan:connect(function(input,process) if not process and input.KeyCode == Enum.KeyCode.B then player.Character.Humanoid.Jump = true end end)
I had a problem recently where setting Humanoid.Jump
to true worked in studio but not in game servers, but using Humanoid:SetStateEnabled()
worked the other way around. Try this:
local UIS = game:GetService("UserInputService") local plr = game:GetService("Players").LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() UIS.InputBegan:Connect(function(key,gameProc) if not gameProc then if key.KeyCode == Enum.KeyCode.B then char.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true) end end end)