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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Would this be correct?

Previous Thread :: Next Thread 
ninjasassin52 is not online. ninjasassin52
Joined: 09 Feb 2010
Total Posts: 93
28 Dec 2011 06:44 PM
function whatever()
randomnumber = math.randomseed(tick())
for i = 1, 10 do
randomnumber = math.random(1,10)
wait(1)
if randomnumber == 1 do
print "Random number equals 1! All is well!"
elseif randomnumber == 2 do
print "Random number equals 2! Selfdestruct!!"
end
end
end
end

so on so forth. Would that be right?

Report Abuse
TameDrone is not online. TameDrone
Joined: 09 Dec 2010
Total Posts: 1006
28 Dec 2011 07:03 PM
Why don't you test it?
Report Abuse
ninjasassin52 is not online. ninjasassin52
Joined: 09 Feb 2010
Total Posts: 93
28 Dec 2011 07:14 PM
I have, i guess i didnt ask it right.
Its not working. Whats WRONG with it?
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
28 Dec 2011 07:18 PM
Did you call the function?
Report Abuse
ninjasassin52 is not online. ninjasassin52
Joined: 09 Feb 2010
Total Posts: 93
28 Dec 2011 07:42 PM
Weeellll...no. No! NO! Its fixed! Thnx!

~Ninja~
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