|
| 05 Sep 2010 02:53 AM |
This script is very simplistic and I have already checked thoroughly that things are correctly placed. The parents are correct and everything is located. I get no output. J1 and J2 are TextLabels inside a screengui. The script is inside a button inside that screengui. Both J1 and J2 start off invisible.
function onClicked() if script.Parent.Parent.J1.Visible == false then script.Parent.Parent.J1.Visible = true script.Parent.Parent.J2.Visible = true else script.Parent.Parent.J1.Visible = false script.Parent.Parent.J2.Visible = false end end
script.Parent.MouseButton1Click:Connect(onClicked)
Any help would be greatly appreciated. |
|
|
| Report Abuse |
|
|
| 05 Sep 2010 03:14 AM |
| Figured it out myself. The last line was incorrect, as Connect does not require capitalization. |
|
|
| Report Abuse |
|