<eof> expected near end? What's that mean?
Made a script, and on line 55, it says that there's a <eof> expected near end. That's the error? What's that supposed to mean??
001 | BlueTeam = game.Teams [ "BlueTeam" ] :Clone() |
002 | local RedTeam = game.Teams [ "RedTeam" ] :Clone() |
005 | repeat wait( 0 ) until game:FindFirstChild( "Teams" ) |
007 | local A = game:service( 'Players' ) |
008 | local A 1 = "This service is unavailable, please wait until 1 more player joins..." |
009 | local A 2 = "Welcome to the official meadows sfing game" |
011 | local A 3 = "The amount of players is successful, and the game will be starting in" .. A 4 .. "Seconds.." |
012 | local A 5 = "Teaming players..." |
013 | local A 6 = "Blue team has won" |
014 | local A 7 = "Red team has won" |
017 | local M = Instance.new( "Message" ,game.Workspace) |
018 | local H = Instance.new( "Hint" ,game.Workspace) |
019 | local TimeForLoop = . 5 |
022 | local GameOver = false |
023 | local RegenTeams = false |
026 | function balanceTeams(players, teams, randomize, callback) |
027 | for key = 1 , #players do |
028 | local value = table.remove(players, randomize and math.random(#players) or 1 ); |
029 | if ( not callback) or callback(key, value) then |
030 | value.TeamColor = teams [ (key % (#teams + 1 )) + 1 ] ; |
038 | { BrickColor.new( "Bright red" ), BrickColor.new( "Bright blue" ) } , |
042 | function checkSpectators() |
044 | for _, player in pairs (game:service( 'Players' ):GetChildren()) do |
045 | if player.TeamColor = = game.Teams.Spectators.TeamColor then |
046 | spectators = spectators + 1 end |
047 | if (spectators > = NumPlayers) then |
048 | game.Teams.BlueTeam:remove() |
049 | game.Teams.RedTeam:remove() |
059 | for _, player in pairs (game.Players:GetPlayers()) do |
060 | if player.TeamColor = = BlueTeam.TeamColor then |
061 | players = blueplayers + 1 |
063 | if blueplayers = = 0 then |
064 | print ( "Blue team has lost" ) |
066 | elseif player.TeamColor = = RedTeam.TeamColor then |
067 | players = redplayers + 1 |
068 | if redplayers = = 0 then |
069 | print ( "Red team has lost" ) |
079 | for i,v in pairs (game.Players:GetPlayers()) do |
080 | if v and v.Character then |
081 | v.Character:BreakJoints() |
095 | coroutine.resume(coroutine.create( function () |
096 | while wait(TimeForLoop) do |
097 | if not ( #A:GetPlayers() > = NumPlayers ) then |
110 | for i = GameTime, 0 , - 1 do |
111 | H.Text = "Time left: " ..i |
117 | M.Text = "Starting new round..." |