I don’t really know what the Title should be since I can’t really describe it much. Anyway Im creating a script which Selects different people to have different roles for Say. Somebody may be a Medic someone else may be a Swordsman or Guard.
local Select = Instance.new("StringValue") local Z = Select:Clone() repeat RandomPlayer = players [math.random(1, #players)] until RandomPlayer:FindFirstChild("Value") == nil Z.Value = Table [math.random(1, #Table)]
The script should take every player and give it a role. However instead of doing it to everyone it does it to only one person. I have a good idea why it does this I can’t think of a solution.