#hitbox issue

1 messages · Page 1 of 1 (latest)

woven field
#

so most of the stuff for my hitbox is functional but unfortunately there had to be a bug, whenever one player swing their sword, the hitbox for it activates for all players, so I've been trying to fix that (it hasn't been going very well as it attempts to index the sword attack remote event (Line 12 on first image) with nil, even though I'm pretty sure it shouldn't)

sharp fox
#

I'm guessing you have them inside each tool

woven field
#

Let me check

woven field
#

yeah

sharp fox
#

Yeah it's just triggering all tools when a remote event is fired

woven field
#

should i put the events in each tool? right now the events are in a folder storing the animation and remote attack event. the folder being in the player character

sharp fox
#

Just have 1 event in rep storage and 1 script in server script service to handle the remote and add just 1 callback to it

woven field
#

remote event?

#

man im so cooked, i feel like im just making things worse😭