Expected 'End' got <eof> Error? Help me
I am working on a killer game. I made a main script that will control whole game (Round).
If you see any error please tell me
Here's output:
1 | 14 : 35 : 57.017 - Jeff (Still in development) @ 04 mar 2020 14 : 35 auto-recovery file was created |
2 | 14 : 35 : 59.052 - ServerScriptService.MainScript: 181 : Expected 'end' (to close 'do' at line 15 ), got <eof> |
3 | kujekmarek applied edits to script MainScript |
4 | GUI Rescale Error - 411 Error | Please DM TheReal 4 Cedar 123. |
Main Script in ServerScriptService
001 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
003 | local PlrCamera = game.Workspace.CurrentCamera |
005 | local ServerStorage = game:GetService( "ServerStorage" ) |
007 | local Status = ReplicatedStorage.Status |
009 | local Player = game:GetService( "Players" ).LocalPlayer |
011 | local MapsFolder = game.ServerStorage.Maps |
013 | local GameLenght = 120 |
025 | Status.Value = "Break 20" |
027 | Status.Value = "Break 19" |
029 | Status.Value = "Break 18" |
031 | Status.Value = "Break 17" |
033 | Status.Value = "Break 16" |
035 | Status.Value = "Break 15" |
037 | Status.Value = "Break 14" |
039 | Status.Value = "Break 13" |
041 | Status.Value = "Break 12" |
043 | Status.Value = "Break 11" |
045 | Status.Value = "Break 10" |
047 | Status.Value = "Break 9" |
049 | Status.Value = "Break 8" |
051 | Status.Value = "Break 7" |
053 | Status.Value = "Break 6" |
055 | Status.Value = "Break 5" |
057 | Status.Value = "Break 4" |
059 | Status.Value = "Break 3" |
061 | Status.Value = "Break 2" |
063 | Status.Value = "Break 1" |
065 | Status.Value = "Break ended" |
067 | Status.Value = "Intermission 10" |
069 | Status.Value = "Intermission 9" |
071 | Status.Value = "Intermission 8" |
073 | Status.Value = "Intermission 7" |
075 | Status.Value = "Intermission 6" |
077 | Status.Value = "Intermission 5" |
079 | Status.Value = "Intermission 4" |
081 | Status.Value = "Intermission 3" |
083 | Status.Value = "Intermission 2" |
085 | Status.Value = "Intermission 1" |
087 | Status.Value = "Intermission" |
089 | game.ReplicatedStorage.IsInGame.Value = true |
093 | for i, player in pairs (game.Players:GetPlayers()) do |
095 | table.insert(plrs,player) |
103 | local AvailableMaps = MapsFolder:GetChildren() |
105 | local ChosenMap = AvailableMaps [ math.random( 1 ,#AvailableMaps) ] |
107 | Status.Value = ChosenMap.Name.. " Chosen" |
109 | local MapSpawn = ChosenMap:Clone() |
110 | MapSpawn.Parent = workspace |
116 | local KillerChosen = plrs [ math.random( 1 ,#plrs) ] |
118 | Status.Value = "The killer is " ..KillerChosen.Name |
120 | table.insert(Killer, 1 ,KillerChosen) |
127 | local Survivors = { plrs } |
129 | table.remove(KillerChosen) |
137 | Killer [ 1 ] .Character:WaitForChild( "HumanoidRootPart" ).CFrame = CFrame.new( 166.4 , 110.3 , 97.6 ) |
141 | game.ReplicatedStorage.CameraKillerBox:FireAllClients(plrs) |
143 | print ( "First event fired" ) |
147 | game.ReplicatedStorage.CameraKillerBoxBack:FireAllClients(plrs) |
149 | local Knife = game.ServerStorage:WaitForChild( "Knife" ):Clone() |
150 | Knife.Parent = Killer [ 1 ] .Backpack |
152 | print ( "Second event fired" ) |
154 | local Spawnpoints = ChosenMap:FindFirstChild( "SpawnPoints" ) |
156 | local SpawnPointsFound = Spawnpoints:GetChildren() |
158 | for i, player in pairs (Survivors) do |
160 | character = player.Character |
165 | character:FindFirstChild( "HumanoidRootPart" ).CFrame = SpawnPointsFound [ 1 ] .CFrame + Vector 3. new( 0 , 10 , 0 ) |
166 | table.remove(AvailableSpawnPoints, 1 ) |
168 | local KillerSpawn = ChosenMap:FindFirstChild( "KillerSpawn" ) |
170 | Status.Value = "Hide! The killer is coming!" |
174 | Killer [ 1 ] .Character:WaitForChild( "HumanoidRootPart" ).CFrame = CFrame.new(KillerSpawn.CFrame) |
176 | Status.Value = "Killer is here!" |