Ive got a script, and I believe everything is okay with it, the thing is. I've been told I need a wait time before triggering the flashtime but like I dont understand.
local Frame = script.Parent
local gui = script.Parent.Parent
function flashfunc()
local i = 1
repeat
flashtimes()
flashtimes()
flashtimes()
flashtimes()
flashtimes()
until i == 1
gui.Enabled = false
end
function flashtimes()
Frame.BackgroundColor3 = Color3.fromRGB(255,255,255)
wait(0.1)
Frame.BackgroundColor3 = Color3.fromRGB(0,0,0)
wait(0.1)
end

1 comment
you shouldn't define a function after you use it