Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a script work even after the person owning it dies?

Asked by
Echtic 128
5 years ago

A script which is making like a fireball is working perfectly fine but when a person owning it dies it disappeares,how do i fix that?

1 answer

Log in to vote
2
Answered by 5 years ago

Hi AmericanLight,

I think it's because you're parenting the Fireball to the player or have a .Died event inside of the fireball which removes it. By the looks of it, if you created it yourself and don't know why this is happening, it's probably not because you yourself removed it using the .Died event of the Humanoid.

You probably parented it to the Character of the Player, which gets destroyed every time a player dies. So, upon the Character being destroyed, so are all of its descendants. Therefore, you need to make sure the fireball isn't under the Character.

I hope I helped, and have a wonderful day/night.

Thanks,

Best regards,

~~ KingLoneCat

0
thx c: Echtic 128 — 5y
Ad

Answer this question