Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Unbinding keys[UNANSWERED]?

Asked by
HexC3D 830 Moderation Voter
10 years ago

For a while I was wondering how to disable some of the Humanoid Controller Keys . Every time I bind or unbind keys, the whole Roblox Studios Crashes.

EDIT1: Also I don't want to disable all the Controls, is there a way to to disable certain Controls?

EDIT2:

game:GetService("ControllerService").Instance:UnbindButton("w") -- Why won't it Unbind from Humanoid Controller.

2 answers

Log in to vote
0
Answered by
IcyEvil 260 Moderation Voter
10 years ago

I couldnt find anything wrong, Its all Good, Also Im New To The Unbinding Keys Thing, Good Luck Though.

0
Ok. HexC3D 830 — 10y
0
Technically this is not an answer so... I would reccomen changing it. HexC3D 830 — 10y
0
Thanks for the effort. HexC3D 830 — 10y
0
Hex, Look for a person Called " chrisfantasyhalo" He knows 10 Coding languages Including Lua, Ask him. IcyEvil 260 — 10y
Ad
Log in to vote
0
Answered by
nilVector 812 Moderation Voter
10 years ago

I'm not sure if this will work, but you might as well try.

for _, v in pairs(game:GetService("ControllerService")) do 
    if v:IsA("HumanoidController") then --You probably need to check for a HumanoidController first
        game:GetService("ControllerService").Instance:UnbindButton("w")
    end
end

Answer this question