|
| 17 Oct 2011 03:31 PM |
Gui.Parent = Players.PlayerGui Frame = Instance.new("Frame") Frame.Style = "RobloxRound" Frame.Parent = Gui Frame:TweenSizeAndPosition(UDim2.new(0.300000012,0, 0.300000012,0),UDim2.new(0.349999994,0,0.300000012,0)) Instance.new("TextLabel") Text.Name = "Text" Text.Font = "ArialBold" Text.FontSize = "Size18" Text.TextWrap = true text.textTransparency = 0.3 text.BackgroundTransparency = 1 Text.Text = "Would you like a copy of BBT Magazine?" text.Size = UDim2.new(1,0,0.2,0) text.Parent = Frame Text.TextColor3 = Color3.new(1,1,1)-- Isue is here! local ButtonYes = nil local ButtonNo = nil ButtonYes = Instance.new("TextButton") ButtonYes.Name = "Yes" ButtonYes.Parent = Frame ButtonYes.Font = "ArialBold" ButtonYes.FontSize = "Size14" ButtonYes.TextTransparency = 0.3 ButtonYes.TextColor3 = Color3.new(1,1,1) ButtonYes.Style = "RobloxButton" ButtonYes.Position = UDim2.new(0.150000006,0,0.699999988,0) ButtonYes.Size = UDim2.new(0.349999994,0,0.300000012,0) ButtonYes.Text = "Yes, Please." --Manners. ButtonNo = Instance.new("TextButton") ButtonNo.Name = "No, Thank you." --MORE Manners. ButtonNo.Parent = Frame ButtonNo.Font = "ArialBold" ButtonNo.FontSize = "Size14" ButtonNo.TextTransparency = 0.3 ButtonNo.TextColor3 = Color3.new(1,1,1) ButtonNo.Style = "RobloxButton" ButtonNo.Position = UDim2.new(0.524999976,0,0.699999988,0) ButtonNo.Size = UDim2.new(0.349999994,0,0.300000012,0) ButtonNo.Text = "No" Image = Instance.new("ImageLabel") Image.Name = "Image" Image.Position = UDim2.new(0.300000012,0,0.100000001,0) Image.Size = UDim2.new(0.400000006,0,0.649999976,0) Image.Image = "http://www.roblox.com/asset/?id=63914940" -- BBT logo Image.BackgroundTransparency = 1 Image.Parent = Frame ButtonYes.MouseButton1Click:connect(function() UserSaidYes(player) end) ButtonNo.MouseButton1Click:connect(function() UserSaidNo(player)
|
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 17 Oct 2011 03:34 PM |
| Listen, if you're going to write your code all bunched up like that and you're going to make these stupid mistakes like not creating a variable when you surely need one, you'd better go back to the basics. |
|
|
| Report Abuse |
|
|
sysmic
|
  |
| Joined: 19 Mar 2010 |
| Total Posts: 383 |
|
|
| 17 Oct 2011 03:34 PM |
try this:
Gui.Parent = Players.PlayerGui Frame = Instance.new("Frame") Frame.Style = "RobloxRound" Frame.Parent = Gui Frame:TweenSizeAndPosition(UDim2.new(0.300000012,0, 0.300000012,0),UDim2.new(0.349999994,0,0.300000012,0)) local Text = Instance.new("TextLabel") Text.Name = "Text" Text.Font = "ArialBold" Text.FontSize = "Size18" Text.TextWrap = true text.textTransparency = 0.3 text.BackgroundTransparency = 1 Text.Text = "Would you like a copy of BBT Magazine?" text.Size = UDim2.new(1,0,0.2,0) text.Parent = Frame Text.TextColor3 = Color3.new(1,1,1)-- Isue is here! local ButtonYes = nil local ButtonNo = nil ButtonYes = Instance.new("TextButton") ButtonYes.Name = "Yes" ButtonYes.Parent = Frame ButtonYes.Font = "ArialBold" ButtonYes.FontSize = "Size14" ButtonYes.TextTransparency = 0.3 ButtonYes.TextColor3 = Color3.new(1,1,1) ButtonYes.Style = "RobloxButton" ButtonYes.Position = UDim2.new(0.150000006,0,0.699999988,0) ButtonYes.Size = UDim2.new(0.349999994,0,0.300000012,0) ButtonYes.Text = "Yes, Please." --Manners. ButtonNo = Instance.new("TextButton") ButtonNo.Name = "No, Thank you." --MORE Manners. ButtonNo.Parent = Frame ButtonNo.Font = "ArialBold" ButtonNo.FontSize = "Size14" ButtonNo.TextTransparency = 0.3 ButtonNo.TextColor3 = Color3.new(1,1,1) ButtonNo.Style = "RobloxButton" ButtonNo.Position = UDim2.new(0.524999976,0,0.699999988,0) ButtonNo.Size = UDim2.new(0.349999994,0,0.300000012,0) ButtonNo.Text = "No" Image = Instance.new("ImageLabel") Image.Name = "Image" Image.Position = UDim2.new(0.300000012,0,0.100000001,0) Image.Size = UDim2.new(0.400000006,0,0.649999976,0) Image.Image = "http://www.roblox.com/asset/?id=63914940" -- BBT logo Image.BackgroundTransparency = 1 Image.Parent = Frame ButtonYes.MouseButton1Click:connect(function() UserSaidYes(player) end) ButtonNo.MouseButton1Click:connect(function() UserSaidNo(player) |
|
|
| Report Abuse |
|
|
sysmic
|
  |
| Joined: 19 Mar 2010 |
| Total Posts: 383 |
|
|
| 17 Oct 2011 03:34 PM |
| yeah, like blocco said, you need a variable. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2011 03:35 PM |
Text = Instance.new("TextLabel") text = Text
You have to actually use a variable for it. Also, I see you using lowercase stuff, and Lua is CASE SENSITIVE. If you incorrectly capitalize anything, you will most likely get an error |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2011 10:00 AM |
Nope None of theese work? How do i create a variable? |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Oct 2011 10:41 AM |
| Ok but i have corrected it all but it still dosent work =v |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2011 11:46 AM |
So you know how to write that but you have no idea what a variable is?
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2011 11:47 AM |
text.Parent = Frame Text.TextColor3 = Color3.new(1,1,1)-- Isue is here!
What is "Text" ? |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2011 09:40 AM |
what is "Gui" ?
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 19 Oct 2011 09:42 AM |
no
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 19 Oct 2011 09:43 AM |
i have to go to dentist so i kill time playing crappy games (roblox)
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 19 Oct 2011 09:45 AM |
im already working on my own online games
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 19 Oct 2011 11:51 AM |
can't say, has to be a secret
~SS9875|Programmer|Web Engineer|Wiki Writer |
|
|
| Report Abuse |
|
|