Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to propel a player forward?

Asked by 5 years ago

Probably has a really simple answer, but how do you make blocks propel someone forward? Not like a booster that increases their walk speed but a brick that pushes the player into any direction, in this case forward. Tried to find something on this, though no results.

0
Search BodyMovers. xPolarium 1388 — 5y
0
Velocity/BodyMovers where the vector is LookVector * Amplifier SummerEquinox 643 — 5y
0
You'll probably need to use a physics solver for the most basic solution to this. https://developer.roblox.com/api-reference/class/VectorForce AZDev 590 — 5y
0
thanks mossiesan 0 — 5y
0
I recommend using BodyPosition. KingLoneCat 2642 — 5y

1 answer

Log in to vote
0
Answered by
Tizzel40 243 Moderation Voter
5 years ago

Basically. you would have to use "Roblox Physics" to propel are make a little dash to your self

you would add body velocity with an Instance.new

then set its MaxForce value to Vector3.new(math.huge,math.huge,math.huge)

then its velocity to it by multiplying the "Lookvector" of the humanoid root part I think like this

HumanoidRootPart.CFrame.LookVector * 50 -- the higher the number the faster you will fly I think.

and those are basic rules to help accomplish you task of dashing (or) propelling your self at a certain force, forward.

Remember: Body Velocity Travels at A "Constant Velocity" So it basically always stays the same!

--T40

Ad

Answer this question