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 » Scripters
Home Search
 

Can't randomize which item you receive

Previous Thread :: Next Thread 
Thr3star is not online. Thr3star
Joined: 28 Mar 2013
Total Posts: 10
20 Dec 2016 03:00 AM
I recently scripted a crate unboxing system in a game i'm going to be releasing soon but I can't get the crate to randomize which item you get. I tried using math.random but for some reason it doesn't let me use it inside a function. I'm using the clickdetector function btw.


Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
20 Dec 2016 03:03 AM
script?


Report Abuse
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
20 Dec 2016 03:45 AM
Ehh use math.Random() e-e
Report Abuse
Thr3star is not online. Thr3star
Joined: 28 Mar 2013
Total Posts: 10
20 Dec 2016 04:35 AM

I tried that before but it didn't do anything. Turns out all i had to do was define the variable before the function, copy and paste it inside the unboxing script that i made then I had to define what would happen if it landed on 1, 2, 3, 4 and 5.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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