How to fling a player, relative to another player

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    2 players, one is attacking, the other is being attacked. The attacked player flings away from the attacking player, how would I do this
  2. What is the issue? Include screenshots / videos if possible!
    no idea how roblox physics velocity works
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    No similar posts
2 Likes

Try this:

local AttackerHumanoidRootPart -- SET THIS TO THE ROOT PART OF THE ATTACKER

local EnemyHumanoidRootPart -- SET THIS TO THE ROOT PART OF THE ENEMY

local KnockbackSpeed = 10 -- SET THIS

local Velocity = AttackerHumanoidRootPart.CFrame.LookVector*KnockbackSpeed

EnemyHumanoidRootPart.AssemblyLinearVelocity = Velocity

and what if I wanted to fling them up, and forwards. flinging them upwards aswell

watch my tutorial, do ther same but instead of a part, do the humanoid root part or the torso of the attacker. Should work fine, with or without ragdoll.