I want to create a grapple. When you click on a player you grapple torwards them. I can’t figure out how to create a bodyvelocity that goes torwards another player. Heres an example of what I want:
You need to calculate a directional vector
To do this you do:
local Direction = (Player1Position - Player2Position).Unit
Now that you have your directional vector you can plug it into your body velocity
BodyVelocity.Velocity = Direction * Power --Set your power to how fast you want the player to move
wait(Delay) --Delay is how long you want to propel the player towards the other player, this can also optionally just be switched out for a loop
BodyVelocity.Velocity = Vector3.new(0,0,0)
2 Likes