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

theres a red line below the "end)" when i do a "while wait(6) do" in a script?

Asked by 4 years ago

here is it, i maked a

while wait(5) do

then i put end after the script

while true do


    script.Parent.Size = Vector3.new(0.5, 0.25, 0.5)
    script.Parent.Parent.eye_1.Size = Vector3.new(0.5, 0.25, 0.5)
        wait(0.5)
    script.Parent.Parent.eye_1.Size = Vector3.new(0.5, 0.5, 0.5)
    script.Parent.Size = Vector3.new(0.5, 0.5, 0.5)


end)

but there is a red line below the "end)" if i remove the ")" the script will not work and will show a error in output, but if i remove the end, the script stop working... someone help pls

0
remove the ) and run the script and see what it says in output wizz_zz 3 — 4y
0
run it with the red, line, see whats in output A_Mp5 222 — 4y

1 answer

Log in to vote
0
Answered by
Desmondo1 121
4 years ago

Well I think the problem is that you are missing an end. If you have a function running then keep the end) but put end before it like this

       while true do


    script.Parent.Size = Vector3.new(0.5, 0.25, 0.5)
    script.Parent.Parent.eye_1.Size = Vector3.new(0.5, 0.25, 0.5)
        wait(0.5)
    script.Parent.Parent.eye_1.Size = Vector3.new(0.5, 0.5, 0.5)
    script.Parent.Size = Vector3.new(0.5, 0.5, 0.5)

end

end)

or if you don't have a function then just remove the ) from the end

0
i stopped making this game, but btw, thx bud TinkyWinkyDev 6 — 4y
0
Np Desmondo1 121 — 4y
Ad

Answer this question