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

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

Asked by 5 years ago

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 answer

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

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**!

Ad

Answer this question