Help me on my new game!

Hello everyone, today I want to create a set of magic wands. I want when a player is hit by the spell, to be thrown back like a punch. Help me please. I started creating the script to cast the spell.

1 Like

The Spell cast parent is Workspace

Use a Raycast for this!

Get the part that intersecates with the Raycast and check if it’s a Character (by checking if it has a Humanoid), then simply create a LinearVelocity constraint inside the HumanoidRootPart for the push effect!

Hope this helps :smiley:

I don’t know how to do this, i never do it before :sweat_smile:

well then that’s one way to learn

First, i do touched event and verify if Hit have an humanoid, after it, i create linearVelocity, but it’s linear velocity i don’t know to use : ( It’s bugged and push the player in a random direction)