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

why wont my basic flashing image script work ?

so im making a horor game and i need a flashing image so i made a image label and put a script in it

  	while true do`	

	script.Parent.Visable = false
	wait(5)
	script.Parent.Visable = true
	wait(0.9)
end`

but it wont work the image just stays visible

1 answer

✓ Accepted answer

Here, let me fix some problems for you:

while wait(0.9) do
	script.Parent.Visible = false
	wait(5)
	script.Parent.Visible = true
end

First error is that it is Visible instead of Visable. Second, not error but saves lines of codes, is that you don't need to add the wait() at the end because you can place it inside the while statement.

Also, quick tip, never use while true do without any wait() in the code as it will run very very fast and will lag out your game.

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