I am making a model with a button on it that has this code
function onClicked()
if script.Parent.Value.Value = "no" then
script.Parent.Parent.up.Transparency = "0"
script.Parent.Parent.up.CanCollide = true
script.Parent.Value.Value = "yes"
end
script.Parent.ClickDetector.MouseClick:connect (onClicked)
The code without the if statement works but i need the "if" there for the rest of the model. Please help! |