I need it bugless, so I'm asking if someone could help me out here, by showing me if there's any bugs and fixing them possibly.
Script:
A = game.Players
if A.NumPlayers == 1 then print("There's not enough players in the game for the game to start.")
A2 = "Welcome to the official meadows sfing game"
A4 = "5"
A3 = "The amount of players is successful, and the game will be starting in" .. A4 .. "Seconds.."
A4 = "Teaming players..."
elseif not NumPlayers < 1 then
print(NumPlayers.." Is the amount of players in the game.")
wait(0.1)
if A.NumPlayers == NumPlayers >2 then
print("Success")
wait(3)
elseif A.NumPlayers == NumPlayers <1 then
print("Denial")
wait(3)
while true do
local M = Instance.new("Message",workspace)
M.Text = A2
wait(1)
M.Text = A3
wait(0.1)
function fixTeams()
BlueTeam = clones[1].Parent = game.Teams -- This is the blue team
RedTeam = clones[2].Parent = game.Teams -- This is the red team
end
wait(3)
M.Text = A4
function checkSpectators()
spectators = 0
for _, player in pairs(game.Players:GetChildren()) do
if(player.TeamColor == SpectatorColor) then
spectators = spectators + 1
end
end
if(spectators == game.Players.NumPlayers) then
BlueTeam:Destroy()
RedTeam:Destroy()
Wait(3)
function findwinner()
players = 0
BlueTeam = game.Teams.BlueTeam.BrickColor.new = "Bright blue"
for _, player in pairs(game.Players:GetChildren()) do
if(player.TeamColor == BlueTeamColor) then
players = BlueTeamColor + 1
wait(5)
if players = 0 then
print("Blue team has lost")
else
print("Red team has lost")
end
end
end
end
end
