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: How to define a gui as a variable?

Previous Thread :: Next Thread 
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:00 PM
^
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 08:00 PM
omfg really
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 May 2014 08:01 PM
1400 posts ^

Lol'd
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:02 PM
oh come on I'm not good at this!
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:03 PM
help
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 08:06 PM
@vlek
so what
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 May 2014 08:06 PM
Playergui
-screengui
--frame
---script


Gui = script.Parent.Parent
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 May 2014 08:07 PM
I lol'd at thread and liked the count.
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:35 PM
function Click()
ShopCharacterGUI.Frame.ItemChoice1.MouseButton1Down:connect(Click)
ShopCharacterGUI.Frame.WI.ImageLabel = "http://www.roblox.com/asset?id=156500006"
thing.Frame.EBlackBar.ENOrangeBar.object.Size = UDim2.new(0,61,0,20)
thing.Frame.WBlackBar.WGOrangeBar.object.Size = UDim2.new(0,31,0,20)
end
script.Parent.MouseButton1Down:connect(Click)
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:36 PM
About that post I just made, where do I add the defined variable? And what should it be?
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 08:51 PM
No one's going to help? Fine...
Report Abuse
VirtualPrince is not online. VirtualPrince
Joined: 17 Oct 2013
Total Posts: 7386
10 May 2014 08:52 PM
You make a path to it. For example

local YouCanChangeTheVariableName = script.Parent -- The path is the script's parent
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 09:07 PM
Okay, so my variable is ShopCharacterGUI.

So my path is

local ShopCharacterGUI = script.Parent
--Rest of script here?
Report Abuse
VirtualPrince is not online. VirtualPrince
Joined: 17 Oct 2013
Total Posts: 7386
10 May 2014 09:08 PM
Well; is the script inside the GUI you want?
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
10 May 2014 09:19 PM
It is in the textlabel. Could that be why it isn't working?
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