Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to create a team change for FPS use?

I am making a FPS called Fall of Corruption. Let's make this clear, How Call of Duty has a team changer after players are done with the match and separate from each other into another pare of 6 & 6. I'm a great builder but need help helping I'm the only one helping myself.

2 answers

✓ Accepted answer

Just so you know, this is your only free-script you are getting from me. We don't make scripts for you. We help you with them. I will not tell you where to put this or which type of script to put it.

local redteam = {}
local blueteam ={}

function startGame()
	for i=1, #game.Players.NumPlayers do
		bool = not bool
		if bool then
			table.insert(redteam, game.Players:GetPlayers[i]);
		else
			table.insert(blueteam, game.Players:GetPlayers[i]);
		end
	end
end

1 comment

1

That's kind of an odd way to go about it, but it will work. However, it will create very similar teams everytime. I would suggest pulling 6 random players and putting them into one team, and then the rest onto the other team. Voila, instant random teams.

Please do not ask for scripts. We only fix the scripts, we do not get questions to make something. Thats why its called ScriptingHelpers We help with scripts.

1 comment

0

Ok.

This discussion is preserved as it was. New answers, comments, and votes are closed.