So i want the code to findfirstchild of an object, IF not then, do something else.
How ever when i write this:
if workspace:FindFirstChild(v.Name).Crystal ~= nil then
print('hello found')
else
print('hello not found')
end
It just says: "Crystal is not a valid member of Model "Workspace.masonsqui34gotband"
Why is roblox ignoring my else statement? Shouldn't this just ignore the if, and go straight to the "else" because it cant findfirstchild? why is is it erroring me

1 comment
since crystal isn't a child of v.Name, it returns an error, use :FindFirstChild on the crystal as well to return nil and go directly to the else