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

Whats wrong with my code?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
function endProgram()
    if game.Workspace:findFirstChild("Program") ~= nil then
        running = false
        makeGui("Venterion://PROGRAMS//ENDING_PROGRAM//",2.5)a
        for _,v in pairs(game.Workspace.Program:GetChildren()) do
            if v:IsA("Part") or v:IsA("TrussPart") or v:IsA("Wedge") then
                x = Instance.new("SelectionBox",v)
                x.Color = BrickColor.new("Bright red")
                x.Adornee = v
                wait()
                v.Transparency = 1
                wait()
            end
        end
        game.Workspace.Program:Destroy()
        makeGui("Venterion://PROGRAMS//PROGRAM_ENDED//",2.5)
        running = false
        return running
    end
end

it says the for is wrong, what is wrong?

0
What do you mean, "it says it is wrong"? Why don't you tell us what it says? BlueTaslem 18071 — 9y

Answer this question