Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to create a team change for FPS use?

Asked by
roku17 10
11 years ago

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

Log in to vote
1
Answered by 11 years ago

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.

01local redteam = {}
02local blueteam ={}
03 
04function startGame()
05    for i=1, #game.Players.NumPlayers do
06        bool = not bool
07        if bool then
08            table.insert(redteam, game.Players:GetPlayers[i]);
09        else
10            table.insert(blueteam, game.Players:GetPlayers[i]);
11        end
12    end
13end
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. ChiefWildin 295 — 11y
Ad
Log in to vote
0
Answered by 11 years ago

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.

0
Ok. roku17 10 — 11y

Answer this question