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

Randomize Team Script?

Asked by
Xelbure 15
10 years ago

I am making a training place for my group and I have a problem. I am trying to make a script that will put random people on a blue team and a red team. I am still learning how to script and am very horrible at it. Thank you for your time and help. Also I would like it so only a HR in a group could say the command.

3 answers

Log in to vote
5
Answered by
Necrorave 560 Moderation Voter
10 years ago

Sadly, if you are looking for help to do this, you need to be more specific. We cannot just give you a script to look at. You must provide a specific question or work in progress and ask for advice or tips on what needs to be done.

Otherwise, I wish you luck in figuring this out! :D

Ad
Log in to vote
2
Answered by
Xelbure 15
10 years ago

Thank you. I finally after 2 days of searching found what I needed. :)

Log in to vote
0
Answered by 10 years ago

Something that I Think might work isdo something put this in starterGUI

local teamval = Instance.new("IntValue", script.Paret.Parent) --this puts it in the player
teamval.Name = teamplacer
teamval.Value = math.random(1, 20) --change the weny to the mount of people going to be in it at once

then, again in the startergui, or starterpack, and have a neutral team at first. And this one has to be a local script.

teamval = script.Parent.Parent.teamplacer
local player = game.Teams.neutral.LocalPlayer
if teamval.Value <=10 then
player.Parent = game.Teams.Red
elseif teamval.Value >= 11 then
player.Parent = game.Teams.Blue
end

it was the best thing i could Think of, becuase the program they use is not Always efficient.

0
atleast, give some kind of credit to me, if it works. rollercoaster57 65 — 10y

Answer this question