How do i continue a script running after it is destroyed (proximity mine)

sup devs so basically im scripting a mine that when dropped, will scan for moving objects within a certain radius and if it does it will blow right the heck up. but problem: there are 2 scripts inside of it (local and server) and as soon as the tool is destroyed the script stops running so i can’t check for if it hit any humanoids or anything. and overall its probably just bad for scripts to be destoryed. but i mean what do i do, tools basically always need scripts? any help is appreciated.

The tool should drop the mine, the actual mine should be handled on the server.

i mean the mine is the tool. its one time use. do i just… put the mine model into the workspace, have it blow up, then once the script has finished its duty destroy it?

1 Like

Don’t actually destroy it – make it completely transparent for an N amount of time, then simply make it visible again for it to be ready.

2 Likes

Yeah, you can do that or do what the above recommended.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.