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

How to i disable WASD movement but still be able to use the "click and go: script?

wo ive seen solutions for this saying to set the walkspeed to 0 but I need to disable WASD keys and still be able to move. please help! click and go script below

--[[
	
[ THIS WAS INSPIRED BY STICKMASTERLUKE'S NATURAL DISASTERS ]
]]


Player					= game.Players.LocalPlayer
Mouse					= Player:GetMouse()

Mouse.Button1Down:connect(function()
if Mouse.Target then
if (Mouse.Hit.p - Player.Character.Torso.Position).magnitude <= 30 then
Player.Character.Humanoid:MoveTo(Mouse.Hit.p,Mouse.Target)
end
end
end)

1 comment

1 answer

✓ Accepted answer

I think you mean you are trying to enable "Click to Move" as the only way to walk around. This is simple.

In the Explorer, click on:

StarterPlayer

Then, under the "Controls" tab, click the "DevComputerMovementMode" option and set it to "Click to Move"

https://gyazo.com/7ea172a5a0019974bdc347b09a3bcbb6

If this helped, please** upvote and accept**!

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