#why do my hitboxes hurt me?

1 messages · Page 1 of 1 (latest)

mental thunder
ashen talon
#

hitboxes are not going to work properly in localscripts

mental thunder
#

its in a normal script

#

but its inside a model inside a tool

ashen talon
#

then character (script.Parent) is not going to be the character you expected

#

also if this is a regular (server) script then player is nil

mental thunder
#

here ill send the explorer

#

heres the othere script to

#

its a normal one too

ashen talon
#

thats good practice for getting help but i already told you whats wrong with it ;o

ashen talon
# mental thunder

your checks for filtering out the parent character are incorrect, both of them. character is the tool, and player is nil. LocalPlayer doesn't exist on the server.

#

how you fix it is up to you

mental thunder
#

what should i do instead im new?

ashen talon
#

well, figure out what values character and player should be, then write the code to make that happen 👍

spare isle
#

yeah this is just logic

#

basically you need to check if the model in question isn't the user of the tool

#

theoretically it should work