So this is probably a very basic question, but I’ve searched on the DevForum and else where to find nothing. My issue is very basic, kick players randomly from a game. Now I’m pretty sure this has to do with getting the number of players or a for/while loop but getting said players is what I’m struggling with.
local players = game:GetService("Players") local player_count = players:GetChildren() if #player_count >= 2 (or the number of players wanted) then --kick players randomly here and getting said players from the players service end
Also note this isn’t my exact code, it’s the base of what I want in a sense. Any help is appreciated, thanks in advanced,