What is wrong with the scripts?
local function reteam()
local x = math.random(2) for _, player in next, game.Players:GetPlayers() do
x = (x + ((player.TeamColor == BrickColor.new("White")) and 1 or 0)) player.TeamColor = BrickColor.new((player.TeamColor ~= BrickColor.new("White")) and player.TeamColor.Name or
(((x % 2) == 0) and "Really Blue" or "Really red"))
end
end
local admins = {"Incrility"}
function tableContains(t, value)
for _, v in pairs(t) do
if v == value then return true end end return false end
function onChatted(message, player)
if message == "!setmode rcl" and tableContains(admins, player.Name) then
reteam()
end
end
Script is intended to take players from team "trainee"(The color is white) and move them to 2 other teams Red and Blue (colors are Really Red and Really blue) The teams must be equal in size also the 2 other teams TRAINER "Black" and Green (Really Green) Must not be affected... IDK what i did wrong...
And Also
local admins = {"Incrility"}
function tableContains(t, value)
for _, v in pairs(t) do
if v == value then
return true
end
end
return false
end
function onChatted(message, player)
if input:sub(1, 9):lower() == "!setmode " and tableContains(admins, player.Name) then
if letters 1 to 9 are !setmode local tool = game.Lighting.tools:FindFirstChild(input:sub(10):lower())
if tool then tool:Clone().Parent = player.backpack tool:clone().parent = game.StarterPack
end
end
end
This was supposed to get the weapon named "sword" which is in Lighting under Tools and give it to player both in the backpack and starterpack... on command "!setmode Sword"

3 comments
Oops I forgot to remove the -- but in the actual script its removed yet it results in the same outcome...
Please stop re-posting the same questions. There's an 'Edit' feature.
I may be able to help with this, but not with your code that sloppy. Please, in the first Code Block, edit your code so that there are at least separate lines rather than one huge chunk of code. It is unreadable.