I have the camera set to scriptable and the character's humanoid Walkspeed set to 0 but I need to have the player walk a certain detection without the players control. I've looked at the wiki and it said to do the following,
for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do controller.Parent = nil end
I made sure to put this in a local script but the player still can control the character when I try to move it.
So how do I do this? I've also tried this,
game.Players.PlayerAdded:connect(function(plr) plr.DevComputerMovementMode = "Scriptable" plr.DevTouchMovementMode = "Scriptable" end)
But this doesn't seem to do anything. Any help would be much appreciated (:
New Code
local plr = game.Players.LocalPlayer repeat wait() until plr.PlayerScripts if plr.PlayerScripts then plr.PlayerScripts:Destroy() end