So right now, I have a part of a script that checks for a part, and if the part exists it makes a change to that part.
if pl:FindFirstChild("RadioMesh") then pl.RadioMesh.Transparency = 1 end
It works fine. However, whenever I check the network, I get an error. It isn't a big deal, but it would be great if this didn't happen as it clutters the output and makes it harder to check for other errors.
So is there a way to go about checking for the existence of something without it outputting an error when it doesn't exist?
Well, instead of deleting it, it was suggested to answer my own question. Basically I wasn't careful when looking at the output and didnt realize the error was coming from a separate line where the thing I was checking for the existence of a child in also didn't alwasys exist, which was giving me the error.
So all I had to do was go back a level, so that I checked within the higher-up parent (sorry if theres a term for this) which always exists, and checked with findfirstancestor.