Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Workspace.Server.ScriptedComponents.Notice.Script:21:d' (to close 'do' at line 1), got <eof>;?

while true do wait(0.5) if script.Parent.Parent.Enabled.Value == false then script.Parent.SurfaceGui.Screen.Script.Disabled = true wait(0.01) script.Parent.SurfaceGui.Screen.Text = "CANNOT CONNECT TO SERVER"

else if script.Parent.Parent.Enabled.Value == true then
	wait(5)
	script.Parent.SurfaceGui.Screen.Text = "Connecting..."
	wait(10)
	script.Parent.SurfaceGui.Screen.Text = "Connection established..."
	wait(2)
	script.Parent.SurfaceGui.Screen.Text = "Loading data..."
	wait(4)
	script.Parent.SurfaceGui.Screen.Text = "Data Loaded.. Booting.."
	wait(1)
	script.Parent.SurfaceGui.Screen.Script.Disabled = false

end

end

1 answer

while true do
    wait(1)
    if script.Parent.Parent.Enabled.Value == false then 
        script.Parent.SurfaceGui.Screen.Script.Disabled = true
        wait(0.01)
        script.Parent.SurfaceGui.Screen.Text = "CANNOT CONNECT TO SERVER"
	elseif script.Parent.Parent.Enabled.Value == true then
	    wait(5)
        script.Parent.SurfaceGui.Screen.Text = "Connecting..."
        wait(10)
        script.Parent.SurfaceGui.Screen.Text = "Connection established..."
        wait(2)
        script.Parent.SurfaceGui.Screen.Text = "Loading data..."
        wait(4)
        script.Parent.SurfaceGui.Screen.Text = "Data Loaded.. Booting.."
        wait(1)
        script.Parent.SurfaceGui.Screen.Script.Disabled = false
	 end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.