-
I want to stop the player JUMP input ONLY without having to set the jump power/height value to 0.
-
I tried using the following code:
local contextActionService = game:GetService("ContextActionService")
local players = game:GetService("Players")
local localPlayer = players.LocalPlayer
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
local humanoid = character.Humanoid
task.wait(3)
contextActionService:BindAction("freeze", function() return Enum.ContextActionResult.Sink end, false, unpack(Enum.PlayerActions:GetEnumItems()))
But its disabling all the player inputs, not only the jump input.
- Thanks for reading!