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
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 129 |
|
|
| 17 Apr 2014 11:44 PM |
| Sorry for the newbie question.. |
|
|
| Report Abuse |
|
|
| 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
|
  |
| 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 |
|