I'm trying to check if my frame is set to true in visible and if it is set to true to wait 5 seconds before setting visible to false
script I tried using:
if script.Parent.Parent.TrainerGui == true then wait(5) script.Parent.Parent.TrainerGui = false end
if script.Parent.Parent.TrainerGui.Visible == true then wait(5) script.Parent.Parent.TrainerGui.Visible = false end
You were checking if trainergui exists and setting something that I can't understand. That means you forgot for the property Visible