generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Gui Managing help

Previous Thread :: Next Thread 
jakej78b is not online. 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
GhostSailor is not online. GhostSailor
Joined: 02 Jul 2010
Total Posts: 1913
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 is not online. 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 is not online. 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
GhostSailor is not online. GhostSailor
Joined: 02 Jul 2010
Total Posts: 1913
28 Dec 2012 03:26 PM
The property is "Active"

-~Obly of C&G~-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image