so im trying to disable their controls, but they still can walk and cancel the walk path. No errors
controllers = {} function removeControl() repeat wait() until game:GetService("UserInputService").InputEnded for i, controller in pairs(game:GetService("ControllerService"):GetChildren()) do controller.Parent = nil table.insert(controllers, controller) end end
if game:GetService("UserInputService").InputEnded then removeControl() game.Players.LocalPlayer.Character.Human.WalkToPoint = Vector3.new(24.4, 0.3, -14.2) else repeat wait() until game:GetService("UserInputService").InputEnded removeControl() game.Players.LocalPlayer.Character.Human.WalkToPoint = Vector3.new(24.4, 0.3, -14.2)