How to make people spawn with 3 random items

just asking because i need to make that code for my game then after that my game should be much better
I probably said that weirdly but dont worry about it i just need to know

2 Likes

If you want to make people spawn with 3 random items, you could use an itemTypeGroup and give it several items, then in the “player joins” script you’d put something like this:

Do note that the script above can give you duplicate items (e.g. code is run 3 times, but you get cookie twice and dorito once)

2 Likes

i already made the script lol but how do i prevent duplicates

1 Like