Moving forward based on direction

So, usually i use this line of code

humanoidRootPart.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 0, -5)

which works to move the player forward, however its not what im looking for, i want to move the player forwards and allow them to change direction whilst doing so, because when i use this code for some reason my character cant change direction.

I’m pretty sure this is a replication problem.

Are you able to do it on the client instead? As it works perfectly fine there, and movement gets synced up with server.

1 Like

ill try this, since my script runs on the server

this worked! thanks a lot, ive been searching forever and i didint know it was this simple

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.