literally just started scripting, very basic, pls help
output is always "it's not" even though the transparency of the parent IS 0
yeet = game.Workspace.Part
function onClicked ()
if script.Parent.Transparency == '0' then
script.Parent.Properties.BrickColor = 'Really red'
else
print("it's not")
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
its not '0'. It's just 0. 0 is not a string but a numerical value. You only put "" for texts. Ex. "partName"