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

I'm trying to check if my frame is set to true?

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

1 answer

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

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