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

How do I disable movement with arrow keys?

Asked by 5 years ago

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

0
u cant, the movement script of those r in the same script. so disable one u disable both Gameplayer365247v2 1055 — 5y
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 Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by
Clorize 31
5 years ago
Edited 5 years ago

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)
Ad

Answer this question