Lines 3 through 7 have no effect on the part. No errors show in output. The rest works exactly as I want, but I need help with the if statement.
local cube = script.Parent
while true do
if cube.Transparency < 0.5 then
cube.CanCollide = false
else
cube.CanCollide = true
end
for i = 0,1,0.01 do
cube.Transparency = i
wait(0.05)
end
for i = 1,0,-0.01 do
cube.Transparency = i
wait(0.05)
end
wait(0.01)
end

4 comments
Once the game starts, the script will check the cube transparency. Then it will run the while loop which changes the transparency. You would need to include the if statement into you're while loop to make it do what you want to do. :D
I thought the same, but it still has no effect. The part remains collide-able whether the if statement is in or out of the loop. Any other ideas?
I don't see why putting it in the loop doesn't work. Could you update your code so I can see what you had done?
There. Also, I've discovered something. When I set the the sign to 'less than, (<)' the part has no collide throughout the test. If I set the sign to 'greater than, (>)' the part always has collide throughout the test.