Humanoid:MoveTo() doesn't work on players

I tested this on a NPC and it works perfectly fine, but when I try it on an actual player it doesn’t work.

Humanoid:MoveTo((player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 3)).p, player.Character)

Does anyone know what I did wrong here?

You can’t just do player.Character as the second argument, character is a model not an instance part.

That seems to be working fine on NPCs, is that the reason why it doesn’t work on actual players?

Could be the reason, maybe try changing it and get back with the result?

2 Likes

I tried it out, they still don’t move. No errors at all.

You could just try without the second argument.

try running the code on client

I did do that, but the same result.

The code is running on client.

Ok i may be wrong here, but i think it has something to do with the players controls over-riding the code

I turned off control in another line I didn’t include.