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

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

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

2 comments

0

remove the ) and run the script and see what it says in output

0

run it with the red, line, see whats in output

1 answer

✓ Accepted answer

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

2 comments

0

i stopped making this game, but btw, thx bud

0

Np

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