im trying to make a script that if an intvalue is 2, then this brick is not transparent, but it doesn't work. im a beginner dev btw
if script.Parent.IntValue.Value == 2 then
script.Parent.Transparency = 1
end
idk why it doesn't work, any help would be appreciated. thanks!

2 comments
tysm!
I dont even want to explain why you should NOT use while true do