So what exactly I'm trying to accomplish is I'm trying to make it so that if in a iv loop the v im looking for has a property named size but it keeps erroring at local script saying that local script does not have a size which I put a if not then to return end but it keeps doing the same thing erroring on LocalScript
Can anyone help ?
for i,v in pairs(game.StarterGui.ScreenGui:GetDescendants()) do
if v.Size == true then
print(v.Name..'has size')
if not v.Size then
return
end
end
end

2 comments
Not reliable, think of the object's children! This is not restricted to properties
True. I'll update my code to check for this case.