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

if (Player1) hits (Player2) how could I launch (Player2) in the direction (Player1) was looking?

Asked by 5 years ago

So I made a hammer tool and I want to make it so that if a player hits another player with the hammer the player hit will be launched in the direction that the player who hit them was looking.

0
Player1.Character.CFrame.LookVector Ziffixture 6913 — 5y
0
I thought it was basepart.CFrame.lookVector Azarth 3141 — 5y
0
@Feahren Character does not have a CFrame, nor the CFrame's respective LookVector - I assume you meant HumanoidRootPart.CFrame.LookVector? SummerEquinox 643 — 5y
0
@OP, take this directional vector and multiply it by some amplitude - and make it the Player's Velocity (or use a BodyMover) to create the effect you seek. SummerEquinox 643 — 5y

Answer this question