Why my character doesn't move with move()?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I would like the character to move without the player touching the joystick or the keyboard, but the move() function does not work. However it works perfectly on another game I have. I can’t figure out why. Thanks

  2. What is the issue?

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
char.Humanoid:Move(Vector3.new(0, 0, -100), true)

I’m not sure about this, I might be wrong but isn’t it MoveTo and not Move ?

Humanoid:Move() won’t work on a single run if the default control scripts are used.
You can read the documentation Humanoid:Move which explains it and even gives a code example.

So lets say we have there example below:

-- `player` you would change to your localplayer variable 'plr'
game:GetService("RunService"):BindToRenderStep("move", Enum.RenderPriority.Character.Value + 1, function()
	if player.Character then
		local humanoid = player.Character:FindFirstChild("Humanoid")
		if humanoid then
			humanoid:Move(Vector3.new(0, 0, -1), true)
		end
	end
end)

To then stop the character from moving you when then put in:

game:GetService("RunService"):UnbindFromRenderStep("move")
1 Like

Thank you very much. Indeed on the other game I was using my own movement system so that’s why it worked, I didn’t know. Your script works perfectly, thanks again