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: whats wrong with this?

Previous Thread :: Next Thread 
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:18 PM
while true do
m = math.random(1,2)

for i = 20,0,-1 do
wait(.5)
h.Text = i.. " seconds until battle start"
wait(.5)
if i == 0 then
end

if m==1 then
h.Text = ""


This isnt the whole script but It doesn't wait the 20 seconds under the while true do, It gives "20 seconds until battle start" but then right away continues to the if m == 1 thing, how do I make it wait the full 20 seconds?
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:29 PM
bmp
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
09 Feb 2014 06:31 PM
____________________________________________________________________________________
while true do
m = math.random(1,2)

for i = 20,0,-1 do
wait(.5)
h.Text = i.. " seconds until battle start"
wait(.5)
if i == 0 then
end

if m==1 then
h.Text = ""


This isnt the whole script but It doesn't wait the 20 seconds under the while true do, It gives "20 seconds until battle start" but then right away continues to the if m == 1 thing, how do I make it wait the full 20 seconds?
__________________________________________________________________________________
while true do
m = math.random(1,2)

for i = 20,0,-1 do
wait(.5)
h.Text = i.. " seconds until battle start"
wait(20)
if i == 0 then
end

if m==1 then
h.Text = ""
__________________________________________________________________________________
Make the wait under h.text 20 instead of .5
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:35 PM
still stuck at the " 20 seconds until battle start" part
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
09 Feb 2014 06:36 PM
What do you mean by Still Stuck?
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:36 PM
It says 20 seconds until battle start for 20 seconds, doewsnt go down from 20 to 19 to 18 ect
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:38 PM
bump
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
09 Feb 2014 06:39 PM
Does it matter if the message is at the black bar on the top of the screen, or do you want it in the middle of the screen? Cause if you want it on the top, i know an easier script.
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
09 Feb 2014 06:39 PM
If its okay on the top, i'll need the full script.
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 06:40 PM
nvm i fixed
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
09 Feb 2014 06:40 PM
Okay.
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
09 Feb 2014 07:57 PM
thanks for helping 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