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

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

Asked by 2 years ago

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

Log in to vote
0
Answered by
Puppynniko 1059 Moderation Voter
2 years ago
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
Ad

Answer this question