Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I disable movement with arrow keys?

How do I disable so players can’t use the arrow keys to move, but still be able to use WASD to move?

2 comments

0

u cant, the movement script of those r in the same script. so disable one u disable both

0

and this is not a script request site, make an attempt on a script first, if u dont suceed then u can come ask with ur script

1 answer

To do this: You have to anchor the body parts. This local script only anchors the HumanoidRootPart, for animation use but you can anchor the other body parts. (local script in textbutton gui) If this helps, accept this answer

script.Parent.MouseButton1Click:Connect(function()
    local player = script.Parent.Parent.Parent.Parent
    player.Character.HumanoidRootPart.Anchored = true
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.