Let me get into more detail. I have an object that I need to script that randomly pathfinds you, and it works fine. The problem I am having is when I set the WalkSpeed to 0 the pathfinding stops as well as you not being able to walk. How do I make it pathfind with not allowing the player to move the character?
COMMUNITY QUESTION
How do I make a real character freeze while pathfinding?
1 answer
You can fire to the client and use disable the Controls as so:
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Enable() -- used to enable controls
Controls:Disable() -- used to disable controls
This discussion is preserved as it was. New answers, comments, and votes are closed.
