#Weldconstraint magically disappear before being destroyed

1 messages · Page 1 of 1 (latest)

smoky spear
#

Okay so theres a mesh called tentacle thats welded to the character, once a certain condition is met a tween will smoothly make it disappear but when i call the :destroy function i find that the constraint is no longer there

#

my guess is that the function ran multiple times causing it to fire twice

#

while the first instance ran fine and deleted a tentacle

#

the 2nd instance ran aswell and when it tried deleting one it found that it couldnt find it

#

but shouldn't it not be able to?

#

since the while loop was broken

stark spade
#

you are connecting to the remote event more than once

#

try to avoid connecting events in a loop unless its very intentional

smoky spear
#

how should i do it then since i need the effect to loop and for it to break when it receives the signal

smoky spear
#

I did a bit of a hacky fix by making an if statement inside the function