So in my game there is a beginning tutorial and in the middle of it you are meant to break down 2 wood planks to get past and they are meant to get destroyed, they do get destroyed but the statement still won't go through. now don't worry about the inside of the if statement but what is happening is that nothing will print which means it won't go through. No errors about this in my output. Please help.
if workspace:FindFirstChild("WoodPlank") == nil and workspace:FindFirstChild("WoodPlank1") == nil then
print("got past function")
wait(1)
print("got past wait")
Controls:Disable()
print("got past the control disable")
HRP.CFrame = CFrame.new(Vector3.new(547.39, 5.61, -818.99))
print("got past the TP")
setText("Good job! Now go inside and see how big and... wait a minute it's empty?")
Next3.Visible = true
print("got past the whole thing")
end

3 comments
I noticed i made the print say "got past the function" but its an if statement but same thing these days lol
If statements only run once, they don't run whenever the condition becomes true later on.
so would i make the if statement go how many times. I can make a for loop because i tried a while true do loop but i don't want that because then it goes over and over but it has to go once.