#Spinning words
1 messages · Page 1 of 1 (latest)
Not sure what you mean by "spin" exactly
@lusty glacier
I meant like as example you have a gui right and you have a table full of words
And the words one by one they sort of spin Yk? Just like in mm2. That gui that spins roles? Kind of like that
u use for loops for that
** You are now Level 11! **
Do you understand what I mean
I have a table full of words and then the gui spins trough every one of them just randomly from 2 to 4 seconds it stops so it goes trough every word and then in between 2 and 4 seconds it will stop
yeah for loops for that
Create a shared array of the game's roles using a ModuleScript in ReplicatedStorage. Using math.random, select a random index from 1-#roles. You may find it more convenient to read the role string over the index from the server, which you can easily get by indexing the roles array with the randomly generated index. You could also use enumerations, but that's less explicit. Send the index to the client, and have them start iterating the length of the array from that index X number of times. Display the roles over this time period until X iterations have completed
You'll end up on the selected role automatically
This approach would allow users to know their role based off of the first role to appear in the cycle, though