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: Text help for TextButton..

Previous Thread :: Next Thread 
RosieLily is not online. RosieLily
Joined: 25 Feb 2014
Total Posts: 129
17 Apr 2014 10:50 PM
I'm attempting to create the GUI from ServerScriptService, because I can't get the GUI to save if placed in StarterGUI without scripting it.
Here is the issue:

local MainGUI = {}

MainGUI.MainMenu = Instance.new("ScreenGui", game.StarterGui)
MainGUI.MainMenu.Name = "MainMenu"

MainGUI.Background = Instance.new("ImageLabel", game.StarterGui.MainMenu)
MainGUI.Background.Name = "Background"
MainGUI.Background.BackgroundColor3 = Color3.new(0, 0, 255)
MainGUI.Background.Size = UDim2.new(0, 150, 0, 250)
MainGUI.Background.Position = UDim2.new(0, 10, 0, 120)

MainGUI.ShopButton = Instance.new("ImageButton", game.StarterGui.MainMenu.Background)
MainGUI.ShopButton.Name = "ShopButton"
MainGUI.ShopButton.BackgroundColor3 = Color3.new(36, 36, 36)
MainGUI.ShopButton.Size = UDim2.new(0, 130, 0, 50)
MainGUI.ShopButton.Position = UDim2.new(0, 10, 0, 10)
MainGUI.ShopButton.TextColor3 = Color3.new(0, 0, 0)
MainGUI.ShopButton.Font = "SourceSansBold"
MainGUI.ShopButton.FontSize = "Size36"
MainGUI.ShopButton.Text = "Shop"

Line 18-20 of Output says that TextColor3, Font, and FontSize are not valid members of TextButton. I searched Google but have had no luck. What am I doing wrong?
Report Abuse
RosieLily is not online. RosieLily
Joined: 25 Feb 2014
Total Posts: 129
17 Apr 2014 11:44 PM
Sorry for the newbie question..
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 12:16 AM
"MainGUI.ShopButton = Instance.new("ImageButton", game.StarterGui.MainMenu.Background)"

MainGUI.ShopButton = Instance.new("TextButton", game.StarterGui.MainMenu.Background)



P.S.
Look what I made
https://www.youtube.com/watch?v=Hy8dlSEu6k8
Report Abuse
RosieLily is not online. RosieLily
Joined: 25 Feb 2014
Total Posts: 129
18 Apr 2014 12:20 AM
Ty, i'm not sure how I overlooked that lol. Neat vid btw.
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