#How do i move a attack hit box to where the players looking

1 messages · Page 1 of 1 (latest)

small mica
#

I know how to set CFrame of it i tried to loop changing the CFrame and it worked but then rest of the script never ran. If there is a way to loop untill it hits someone or 0.2 seconds has passed i think i could do it like that

buoyant ibex
#

look into Weld or WeldConstraint

small mica
#

nvm i got it working

#

WWWWWWWWWW

buoyant ibex
#

part0 humanoid root part
part1 hitbox

#

nice

#

also make sure your weld constraint is parented to hitbox

small mica
#

Ik i just had to do that and change the cframe of the hitbox

ornate igloo
#

use raycast

#

Hitboxes -> Imprecise
Magnitude -> makes you able to hit backwards (this is the best option if it is an AOE attack)
¿What is raycast?
Make like when you slash an imaginary line comes out from your character
If that imaginary line hits something on its way then it will return that
So make that a raycast goes out from the player with the sword torso
and if it detects another npc which has an humanoid or something that can distinguish it from the environment
Make the damage event
Look it up and tell me if you need any help with it

buoyant ibex
#

makes you able to hit backwards? you can also do this with hitboxes

#

and hitboxes are not imprecise