I have this simple part of a script
wait(5)
if FRAME.Visible == true then
repeat
wait(3)check_Have() print("checking...")
until
FRAME.Visible == false
end
Which does what I want it to, it runs the check_Have() function if the frame is visible after the 5 second wait, but I want it to be able to recognize when the FRAME goes from not visible to visible. Basically this works for when the frame is already visible but not for when it becomes visible after the 5 seconds. How would I notify the script that the frame has become visible?

3 comments
Do you mean only if it's changed from not visible to visible?
Couldn't you just use FRAME.Changed:print("The frame has changed")? That's just an idea, as I don't quite understand your question.
sorry I should have been more clear. When I said "notify the script" I mean't write in Lua what I want the script to do. Basically my question is how do I tell the script that when the frame BECOMES visible I want it to do the check_Have() function