Been crawling around in the Player Module scripts trying to find a way to unbind/disable specifically WASD but not the arrow controls, as I am trying to make a limited controlled game. Anyone have an idea where in the Player Module script WASD is?
Something you could do is if the player pressed W or A or S or D, set the humanoid walkspeed to 0 so they dont move from WASD.
Hah! Thats smart, I would of never thought of that. Ill try it out in a bit and get back to you.
this topic might help, seems similar to what you’re trying to do
Worked quite well! I just switched it around so your walk speed is always zero, and pressing the arrows turns it to 16. Here is the script if anyone is wondering, its a local script and goes in StarterCharecterScripts.
local Character = script.Parent local Player = Character.Parent local Humanoid = Character.Humanoid local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard then if input.KeyCode == Enum.KeyCode.Up then Humanoid.WalkSpeed = 16 end end end) UserInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard then if input.KeyCode == Enum.KeyCode.Down then Humanoid.WalkSpeed = 16 end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard then Humanoid.WalkSpeed = 0 end end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.