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

How Do I make that the player would be flinged towards where he is looking at?

Asked by
JoneXI 51
3 years ago

Hello, I have beed trying to make that the player would be flinged towards where he is looking at using body velocity. If I would use this:

bodyvel.Velocity = Vector3.new(player.Character.HumanoidRootPart.CFrame.LookVector)

it would work, but the numbers are too small to fling the player, so when I use this:

bodyvel.Velocity = Vector3.new(xvector*100,0,zvector*100)

It multiplies by 100, but then if the values arent equal it flings towards only one direction...

Any Help would be appreciated!

0
Can't you multiply the lookVector by some number? User#32819 0 — 3y

Answer this question