I'm new to Lua, this is my first script:
local Close = script.Parent.Parent.Parent.Parent.Close
local ClosingVAL = script.Parent.ClosingVAL
local ClosingVAL = Close.Disabled.False
If Closing=true then
wait (1) then script.Parent.Material = "Neon"
wait (1) then script.Parent.Material = "SmmothPlastic"
wait (1) then script.Parent.Material = "Neon"
wait (1) then script.Parent.Material = "SmmothPlastic"
wait (1) then script.Parent.Material = "Neon"
wait (1) then script.Parent.Material = "SmmothPlastic"
wait (1) then script.Parent.Material = "Neon"
wait (1) then script.Parent.Material = "SmmothPlastic"
end
end
This is a regular scirpt, inside a Part. I didn't test this yet, but the expected outcome is for the parent of the script to change materials (and thus "blink") every one second. Should I make the wait time shorter? Will Studio even be able to recognize and successfully execute this script?
PS: ignore that 1| before the first end there, I have no idea how to get rid of it.
Like this, Geobloxia?
[(https://drive.google.com/file/d/1Goww0BE4GW1b7IzKJyv2Ux7EMLg9prVn/view?usp=sharing)]

3 comments
You should use the code block to properly format that code instead of using it as a text. Also the material name is SmoothPlastic, not SmmothPlastic, may be a typo.
Like this, Geobloxia?
Copy and paste the link into your browser.