So I was able to make four nails that can each be unscrewed with a click and I want them to unanchor a union when I unscrew all the nails, so I used this code in the union below:
while true do
if game.Workspace.Nail1.Anchored = false
then if game.Workspace.Nail2.Anchored = false
then if game.Workspace.Nail3.Anchored = false
then if game.Workspace.Nail4.Anchored = false
then script.Parent.Anchored = false
end
end
end
end
end
The problem is that the script doesn't work because it has the red underline under the first equal sign, and I don't know how to fix it. WHY?!?!
