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
10 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 10 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.

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
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 — 10y
Ad
Log in to vote
0
Answered by 10 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 — 10y

Answer this question