-- AutoPlayer function local function autoPlayer() for _, team in pairs(teamsToStealFrom) do for _, player in pairs(game.Players:GetPlayers()) do if player.TeamName == team then -- Steal player player.Team = game.Teams:FindFirstChild(myTeam) end end end end
You're looking for a feature from the Universal Script Hub (USH) for Roblox! universal fe script hub work
-- Configuration local teamsToStealFrom = {"Team1", "Team2"} -- List of teams to steal players from local myTeam = "MyTeam" -- Your team name -- AutoPlayer function local function autoPlayer() for _,
(This is just an example and may not work as-is) team in pairs(teamsToStealFrom) do for _
Would you like more information on the Universal Script Hub or help with another feature?