Script inside serverscriptservice, no errors, it just doesn't do anything.
local replicatedstorage = game:GetService('ReplicatedStorage')
local status = replicatedstorage:WaitForChild('InfoValue')
function randomTeams(player)
if status.Value == "Map Spawned, prepare to fight soon!" then
local teamValue = game.ServerScriptService.MainScript.TeamValue.Value
local teamBlue = game.ServerStorage.Blue:Clone()
local teamRed = game.ServerStorage.Red:Clone()
teamRed.Parent = game.Teams
teamBlue.Parent = game.Teams
if teamValue == 1 then
player.TeamColor = BrickColor.new("Really red")
teamValue = 2
elseif teamValue == 2 then
player.TeamColor = BrickColor.new("Really blue")
teamValue = 1
end
end
end
randomTeams()

2 comments
That did the same thing no errors, but it just didn't work. Is this supposed to be in a local or server script?
It should be in a server script.