|
| 07 Jun 2014 10:07 AM |
I have this code and the TextButton's Text wouldn't change. It's supposed to be a countdown...
while script.Parent.Parent.Visible == true do v = math.random(10,15) script.Parent.Style = "Custom" script.Parent.TextColor3 = Color3.new(0,0,0) repeat script.Parent.Text = ""..v.."" v = v-1 wait(1) until v == 0 script.Parent.Style = "RobloxButtonDefault" script.Parent.TextColor3 = Color3.new(255,255,255) script.Parent.Text = "Click to Close Advertisement" script.Parent.MouseButton1Click:connect(function () script.Parent.Parent.Visible = false end) wait() end
No Output error given. What's wrong?? |
|
|
| Report Abuse |
|
|
tecno15
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1372 |
|
|
| 07 Jun 2014 10:08 AM |
while script.Parent.Parent.Visible == true do v = math.random(10,15) script.Parent.Style = "Custom" script.Parent.TextColor3 = Color3.new(0,0,0) repeat script.Parent.Text = "..v.." v = v-1 wait(1) until v == 0 script.Parent.Style = "RobloxButtonDefault" script.Parent.TextColor3 = Color3.new(255,255,255) script.Parent.Text = "Click to Close Advertisement" script.Parent.MouseButton1Click:connect(function () script.Parent.Parent.Visible = false end) wait() end |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 10:10 AM |
| where's the change @above?? |
|
|
| Report Abuse |
|
|
tecno15
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1372 |
|
|
| 07 Jun 2014 10:13 AM |
| I understand what you are trying to do. Let me fix it again. |
|
|
| Report Abuse |
|
|
tecno15
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1372 |
|
|
| 07 Jun 2014 10:14 AM |
while script.Parent.Parent.Visible == true do v = math.random(10,15) script.Parent.Style = "Custom" script.Parent.TextColor3 = Color3.new(0,0,0) repeat script.Parent.Text = "" .. v v = v-1 wait(1) until v == 0 script.Parent.Style = "RobloxButtonDefault" script.Parent.TextColor3 = Color3.new(255,255,255) script.Parent.Text = "Click to Close Advertisement" script.Parent.MouseButton1Click:connect(function () script.Parent.Parent.Visible = false end) wait() end |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 07 Jun 2014 10:14 AM |
script.Parent.TextColor3 = Color3.new(1,1,1)
|
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 07 Jun 2014 10:17 AM |
while script.Parent.Parent.Visible do v = math.random(10,15) script.Parent.Style = "Custom" script.Parent.TextColor3 = Color3.new(0,0,0) for i=v, 0, -1 do script.Parent.Text = i wait(1) end script.Parent.Style = "RobloxButtonDefault" script.Parent.TextColor3 = Color3.new(1,1,1) script.Parent.Text = "Click to Close Advertisement" script.Parent.MouseButton1Click:connect(function () script.Parent.Parent.Visible = false end) wait() end |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 10:29 AM |
| Still didn't work... Here's a model of what I'm trying to do: http://www.roblox.com/Advertisement-Popup-item?id=160339417 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 07 Jun 2014 11:39 PM |
Bump 4
Help me pl0x someone!! Take the model if you want to see it for yourself, I posted the link a few replies ago! |
|
|
| Report Abuse |
|
|
| |
|