This script is supposed to be getting everyone on a team of green and putting there names in random slots in the scripts children named king. there are 5 string values named "King" and the output is saying "String expected" on line 7. Can someone help me?
print("Putting random slots for green") local labels={[1] = script.King} local count=1 wait(0.5) for _,v in pairs(game.Players:GetPlayers())do if v.TeamColor==BrickColor.new("Bright green")and labels[count]then labels[count].Value=v table.insert(labels,count,v.Name) count=count+1 print("Done putting slots for green") end end
