Hitbox moving with player

Im trying to make a hitbox with a skill in my game which dashes with a weapon so I would need a hitbox that would be welded to the player and detects really good, I don’t know if I could use raycasting for this if so I don’t know how because atm i’m not very good with raycasting.

any help is appreciated.

My ability

1 Like

Try ClientCast.

2 Likes

You could use modules made by other members of the community like the one @Lit_skillzYT suggested.

You could also just weld a part to the player and use workspace:GetPartsInParts(hitbox), looping through every part in contact and searching for a player.

1 Like

oh yeah, I use client cast for my normal attacks and didn’t even think about doing this with a part, so would this work by creating a part in front of the player and welding it to the player then using client cast on it?

1 Like

(Deleted last post because I completely misread your question).
Welding a hitbox to the HumanoidRootPart would work, so would positioning it in front of the character every frame. Your choice.

client cast worked and detects very well with my ability thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.