I am making a recreation of deathrun, and I need help with the team generator, where it picks a random map from the lighting, then picks a random player to be killer and everyone else to be runner.
its really basic, once you have your random player, you can get the others.
players = game.Players:GetChildren() -- gets current players randomp = players[math.random(#players)] -- picks random player print(randomp.Name .. " is it") -- tells us who the random player is --stuff for it player or random for i,v in pairs(players) do -- iterate the player table if v.Name ~= randomp.Name then -- whoever isn't 'it', will tell us who isn't print(v.Name .. " is not it") -- tells us who --stuff if not it end end