This is quite a difficult problem to try and explain, but I will try my best. So, I have a list of jobs in a dictionary at the current moment, each linking to either bool values. What I wish to do, in a testing sort of phase, is that when I click a part (Which is going to be changed, like I said it’s for testing), it will move the player onto the next job and change the value of the current job (true – > false) and move the player onto the next job (false – > true) Currently I have these in a dictionary, but I was wondering if there was a better way of doing this as dictionaries aren’t sorted, so there is no ‘next job’ in the dictionary. Any help would be appreciated and ask questions if this wasn’t the best explanation.
local jobDictionary = {
["Chef"] = true, -- For example, would want to change this to 'false'
["Taxi Driver"] = false, -- and then this to 'true'
["President"] = false,
}
This would then be stored in a DataStore and if one of the job changes, it would update the job that the player has.