If a part is not a valid member of workspace for example, how would I set the "If" condition for it to then do something when it detects that?
part = workspace:WaitForChild("Part") if not part then end
or you could also do this
if not workspace:FindFirstChild("Part") then end