No, when as in if part got destroyed = rest of the script here
have you seen my code post above?
ok you have two options, yield until
Destroyed is fired or connect the event
You don’t need that tho, it’s just a waste of time, and possibly a memory leak, but because you asked…
local part = part while Wait() do if workspace:FindFirstChild(part) == nil then --do stuff end end
Do i put this into the part which is going to be destroyed?
Okay. And last thing. Would your code support a localscript?
not sure why you would prefer one over the other because i just described the same thing he did with extra if you want to yield
I mean, would his code work with localscript? I need a localscript supporting version of his code if not
Localscript, clientside, whateva
this works both for localscript and serverscript
Please make sure to be more descriptive in the title in the future – this title explains pretty much nothing about your problem and even the original post lacks a lot of information.
Simply meant if he means to use it @V_ladzec’s is already working, you explained it tho
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.