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

Script has an error while trying to loop, how do i fix that?

Asked by 3 years ago

hi i have a script error, can somebody help me solve this?

local thingtosay = {"Zamknij Przejazd!/Close the Crossing!"}
    local interval = 3
    local colour = "Red"


    while wait () do
        for _ v in pairs (thingtosay) do
            game:GetService("Chat"):Chat(script.Parent, v, colour)
            wait(interval)
        end
    end 
0
what is the error? jwklong 32 — 3y
0
put a comma after _ potatomay 20 — 3y

Answer this question