Hi! I'm trying to use the HumanoidController in a script to disable jumping. For some reason when I try to get it by using the method on the Roblox Wiki it doesn't work. When I try to replace FindFirstChildOfClass with just FindFirstChild it says that HumanoidController is a nil value. Meaning it's not there. So, how do I access the HumanoidController?

Here's my very simple script.

wait(1)
local ControllerService = game:GetService("ControllerService")
local HumanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")

HumanoidController:UnbindButton(32)

Also here is the link to the Roblox Wiki page.

http://wiki.roblox.com/index.php?title=API:Class/HumanoidController

2 comments

1

If all you want is to disable jumping, you can set JumpPower to 0.

0

Hmm. Actually I think your right. I just tested it and it does work a lot better then what the HumanoidController could do.