So, I'm developing a game called 'Bullseye', I'm working on adding a lobby script and I've done most of it but I don't know how to implement teams into the script, if someone could help me I would really appreciate it, the teams are "Feds", "Terrorists" & "Civilians", I need to somehow make the script randomly place players into one of the teams. [Feds should have 2nd most players, Civilians should have the most players and Terrorists should have around 2-3 players in it]
Thanks for any help! Your help is greatly appreciated!
Here is the script:
while true do
local start = 20
local hint = Instance.new("Hint")
hint.Parent = game.Workspace
for i = 1,start do
hint.Text = start - i
wait(1)
end
hint.Text = "Game Starting" -- Change this to what you want it to say when its starting the game
wait(2)
hint:remove()
-- target\/ or or
random = CFrame.new(-122.6, 4.59, -199.6 or -104.6, 4.59, -85 or -132.6, 4.59, 13.6) -- Location you want them to go
for i, player in pairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = random + Vector3.new(0, i * 5, 0)
end
-- random after cframe = target
local start = 500
for i = 1,start do
hint.Text = start - i
wait(1)
end
hint.Text = "Game Over" -- Lose message
p = game.Players:GetChildren()
for i = 1,#p do
p[i].Character.Head:remove()
end
wait(2)
hint:remove()
end

2 comments
Put the code in code block so we can tell what it says
Ok, done.