#Animation stopping when item is destroyed.
1 messages · Page 1 of 1 (latest)
Would assume its because the script gets destroyed as well
What should I do then
In the description of the .Destroying it says that it fires a right before it gets destroyed
yeah but it doesn't work when the script is a child of the instance being destroyed
Roblox does something funky to get around this in their racing template
They create a script that listens for destroying outside the part and then fires a bindable event when it gets destroyed
But if u want a very easy fix then I think u can just go into Workspace and change SignalBehavior from Deferred to Immediate
And I think would fix
Will it mess anything else?
Could
Yea so basically I did that and it doesnt even play the animation
That don’t make sense
Guess could look at what Roblox does in their Racing template
But yeah idealy you don't want to put scripts inside instances of course
Any idea what this could be
Could be because its a tool I guess
So i changed everything and now i got a script for everything and basically every works normally but stopping the animation doesnt, and when i delete the tool an error pops up. The error doesnt pop up when i delete other items like another script that i got i delete an item but it works normally
Trashbag is archivable?
What does that mean, i mean what does it do
Don't think it would throw that error but only idea I had
I guess its just to stop cloning tho
So basically it wont be shown in the acctually game if its off but why would that mess my code
I don't understand why this is happening
When I delete a tool it doesn't give me that error
Cuz I have this but works fine
I assumed ur handling it on client
and it handles the destroying event fine
But this script is not a child of the tool
Nope it's a script in server script service
