Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Expected 'End' got <eof> Error? Help me

Asked by 5 years ago

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:

114:35:57.017 - Jeff (Still in development) @ 04 mar 2020 14:35 auto-recovery file was created
214:35:59.052 - ServerScriptService.MainScript:181: Expected 'end' (to close 'do' at line 15), got <eof>
3kujekmarek applied edits to script MainScript
4GUI Rescale Error - 411 Error | Please DM TheReal4Cedar123.

Main Script in ServerScriptService

001local ReplicatedStorage = game:GetService("ReplicatedStorage")
002 
003local PlrCamera = game.Workspace.CurrentCamera
004 
005local ServerStorage = game:GetService("ServerStorage")
006 
007local Status = ReplicatedStorage.Status
008 
009local Player = game:GetService("Players").LocalPlayer
010 
011local MapsFolder = game.ServerStorage.Maps
012 
013local GameLenght = 120
014 
015while true do
View all 181 lines...
0
both the while loop and the first if statement have no end's, you need to include them after the initial 3 end's DeceptiveCaster 3761 — 5y
0
So how much ends should i add and where (What lines) because i added them and its still not working kujekmarek 24 — 5y
0
2 end's after your very last end in the script DeceptiveCaster 3761 — 5y

1 answer

Log in to vote
0
Answered by
bum5Br 97
5 years ago

The console says it all, in your while true loop you have 3 statements, but only two ends. just add an end where you want your while true loop to finish.

Ad

Answer this question