jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 28 Dec 2012 03:11 PM |
So, I have a few gui buttons on the left side of my screen. I am in a building game. The problem here is when i use my building tool (brings all items on left) It interferes with the guis i already have there. So when i try to select a brick I press the teleport or open shop gui. I don't understand why this script won't work. It is located inside of the building tool and it is a LOCAL script.
function Equip(mouse) game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.TeleportGui.Downstairs.Visible = false game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.TeleportGui.Upstairs.Visible = false game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.ShopGui.Main.Visible = false end
function Unequip(mouse) game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.TeleportGui.Downstairs.Visible = true game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.TeleportGui.Upstairs.Visible = true game.Players:findFirstChild(script.Parent.Parent.Parent.Name).PlayerGui.ShopGui.Main.Visible = true end
script.Parent.Equipped:connect(Equip) script.Parent.Unequipped:connect(Unequip) |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 03:12 PM |
They're still enabled, if not visible. An easy way is to move them off-screen, but there is an enabled property, I believe.
-~Obly of C&G~- |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 28 Dec 2012 03:19 PM |
| Well, that might do the trick. If the guis don't work when the tool is active that solves the problem too, ill give it a try. |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 28 Dec 2012 03:22 PM |
| That won't work, Frames and TextButtons don't have a "Enabled" property...any other suggestions? |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2012 03:26 PM |
The property is "Active"
-~Obly of C&G~- |
|
|
| Report Abuse |
|
|