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 not changing?? Why??

Previous Thread :: Next Thread 
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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 is not online. 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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Jun 2014 10:10 AM
where's the change @above??
Report Abuse
tecno15 is not online. 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 is not online. 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 is not online. 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 is not online. 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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Jun 2014 11:36 AM
Bawmp2
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Jun 2014 10:21 PM
b3
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
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
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
08 Jun 2014 06:32 AM
B5...
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