#hitbox issue

1 messages · Page 1 of 1 (latest)

glossy canopy
#

basically when making my hitboxes, they keep firing a lot, for example: i set it to print once on hit and add a debounce, it just waits for the debounce to end and prints again, please i need help this issue is so annoying

knotty dagger
#

show script

glossy canopy
#

ok heres every script involved

#

the first one is on the client, the other two are server scripts

knotty dagger
# glossy canopy

Is there more than one part that is included in your generator (besides the random wires you excluded)

glossy canopy
#

just right box and left box and random wires

knotty dagger
#

are you able to give a video of whats happening

#

but it could be a problem with your open connection

#

.Heartbeat is not disconnected will continue to run after the hitbox is used and deleted, and could cause some errors in the long run

#

and I might be stupid but how is workspace:GetPartsInPart working when you delete the part right before it?

glossy canopy
#

it still works

#

just dw about that

#

but

#

what do you mean by heartbeat?

#

do yk a way to make it stop instantly after firing ocne?

#

once?

#

@knotty dagger

knotty dagger
glossy canopy
#

to fire only once

#

@knotty dagger

knotty dagger
glossy canopy
knotty dagger
#

just remove the runservice, and move all of the lines inside of it out

#

RunService.Heartbeat is for if you want the code to repeatedly run basically every frame, but if you need something to run once then thats just normal lines of code

glossy canopy
#

ooooh

#

tysm

#

i really appreciate it

knotty dagger
#

❤️

glossy canopy
#

hey

#

@knotty dagger

#

sorry if im annoying u

#

but after testing it

#

it didnt create the hitbox at all this time

#

if u have any clue why then pls lmk

knotty dagger
# glossy canopy

A couple of things, why are you destroying the hitbox multiple times within your script, and is your part visible, if not then do that so you can confim that the part is being placed