|
| 20 Jan 2013 03:40 PM |
ScreenGui> Frame>Random stuff that isn't important in the script Frame2>Doors>Script
Script:
script.Parent.MouseButton1Down:connect(function() if script.Parent.Parent.Parent.Frame.Visible == false then script.Parent.Parent.Parent.Frame.Visible = true script.Parent.Text = "Close" script.Parent.BackgroundColor3 = Color3.new(255; 0; 0) elseif script.Parent.Parent.Parent.Frame.Visible == true then script.Parent.Parent.Parent.Frame.Visible = false script.Parent.Text = "Open" script.Parent.BackgroundColor3 = Color3.new(0; 255; 0) end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Jan 2013 03:45 PM |
| Okay, I got it to work by switching the semicolons with commas. But now when I press the open/close button, it turns black until I mouseover it. Is that just a glitch with GUIs? |
|
|
| Report Abuse |
|
|