Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

Log in to vote
0
Answered by
SuperPuiu 497 Moderation Voter
2 years ago
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

Ad

Answer this question