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

How to push to the opposite direction from a player ?

Asked by 5 years ago

I want to make a spell that push away players from the caster. However, i dont want the players to be pushed in the same direction but to the opposit direction from the caster. As i'm bad at explaining, i made a really fast drawing (and it's not the best one but we still can understand what i mean) :

Here is the drawing : https://gfycat.com/PassionateNarrowCod

0
Use a BodyObject (Force) and apply a force to the players you're pushing. You can get nearby players with something like Region3 or raycasting. xPolarium 1388 — 5y

Answer this question