Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Choose random hat from catalog?

Asked by
Seyfert 90
7 years ago

Is it possible to have a script randomly pick a hat from the roblox catalog? If so could I get a couple of hints how to write the script? At least figuring out how to access the catalog?

1 answer

Log in to vote
0
Answered by
Volt3Z 40
7 years ago

First you need to get a random number to do that use random math(http://wiki.roblox.com/index.php?title=Random_numbers&redirect=no)

After for the catalog i will recomand you to put the items that you want in like the server storage and assigned them with number.

The result of you randomseed will be a number that will be associated with an item that as this number and then you just have to copy it in th eplayer backpack.

if you need more help contact me on twitter at:@Volt3Z

Ad

Answer this question