of     1   

keehl254
#59918475Wednesday, December 21, 2011 5:35 AM GMT

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!
Lowcart
#59918507Wednesday, December 21, 2011 5:35 AM GMT

[ Content Deleted ]
LuisPambid
#59919499Wednesday, December 21, 2011 6:00 AM GMT

function onClicked() if script.Parent.Value.Value == true then script.Parent.Parent.up.Transparency = 0 script.Parent.Parent.up.CanCollide = true script.Parent.Value.Value = false end end script.Parent.ClickDetector.MouseClick:connect (onClicked)
keehl254
#59919757Wednesday, December 21, 2011 6:06 AM GMT

Thank you. I kept thinking that i needed it like that but the last line worked so i figured i shouldn't change the first.

    of     1