#hitbox.Touched doesnt work

30 messages · Page 1 of 1 (latest)

gray fulcrum
#

@twin garnet .touched is inside tool.activated so the tool would have to be used before the other event fires

twin garnet
#

so i should put it in tool.equipped ?

gray fulcrum
#

I’ve no clue what you’re trying to do🤷‍♂️

twin garnet
#

the hitbox spawns and despawns correctly

#

im trying to, when it touches another part

#

that part, if its name is a "Trunk"

#

the trunks health decreases

#

in the screenshot

#

it just says to print the name of the thing its hit (if its a trunk)

#

but it wont print anything

#

and it doesnt give me an error as well

gray fulcrum
#

Can you show a screenshot of how the hitbox sits over the objects?

twin garnet
gray fulcrum
#

No wait I see it

#

otherPart is the part that touches the hitbox

#

In most cases it will be the character’s parts or the tool’s parts

#

Never the trunk

twin garnet
#

so what should i do in my case

#

@gray fulcrum

gray fulcrum
#

Have the trunk inside the script

#

Or have the hitbox be apart of the tree

twin garnet
#

what about the other trees then

gray fulcrum
#

Then take off health as the hitbox gets triggered

gray fulcrum
twin garnet
#

the hitbox is the trunk

#

and if the hitbox hits the trunk

#

it triggers

#

that should work but it wont

#

if i had multiple trees i would have toreference them all

#

in one script