How do i force the player to walk forward?

How do i forcibly make the player move forward? Using their walkspeed.
I need this for a dash, if you play the game “Rogue Lineage” i would like to have the effect to kinda look like that. (Basically you can controll where the dash will land with moving your camera while the dash is active.)

You can use the Humanoid:Move or Humanoid:MoveTo() function, For stuff liek dashes body movers may be better like bodyvelocity or bodyposition, alternatively you can use use cframe and tweening

2 Likes

u can use BodyVelocity simply to move player
Hope it helped u Have a good day/night

I dont think that would be controllable though? unless i change the bodyvelocity like every millisecond with a while loop.

1 Like

You just need to change the velocity property of the bodyvelocity per frame, Although I am unsure how responsive bodyvelocity is in reacting to frame changes

1 Like

Thought so, ill try this. I’m checking what direction their moving with a remote and UIS

1 Like

u dont have to change the bodyvelocity every second man just use instance then set time
near the place u want to go to if u want players stay in a postion perfectly just use CFrame
after Velocity ends near the place

Good luck man :slight_smile: Hope it ill solve ur problem

He wants the direction to change based on where the camera is looking at, which involves changing liek during mid-dash

Humanoid:MoveTo()
https://developer.roblox.com/en-us/api-reference/function/Humanoid/MoveTo

Humanoid:Move()
https://developer.roblox.com/en-us/api-reference/function/Humanoid/Move

1 Like

https://developer.roblox.com/en-us/api-reference/function/Humanoid/Move