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

Why Is The Script Running Even Though The Parent Is Disabled?

Asked by 3 years ago

Hello! I am a scripter that started 1 month ago, and I have a question does scripts still run if it's in a GUI that is disabled?

here is my story

I have a script in a screen GUI and the screen GUI is on the starter GUI, I also made the screen GUI disabled, what I'm trying to do is to enable the screen GUI with another script but, the script inside the screen GUI executed by its own, I checked if the screen GUI is enabled and it's not

So?

if you're asking what my script in the screen GUI was it was this:

script.Parent.MainFrame.Visible = true

I was really confused sorry

0
the script that enables it was disabled btw master_kingdom 0 — 3y
0
The script will keep running even if the GUI is disabled. You need to disable the script itself. radiant_Light203 1166 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

This Is Cause If The Frame's Visibility Is Disabled It Wont Disable The Script But If The ScreenGui Is Disabled Then The Script Would Also Be Disabled Also This Is Not A LUA Question

0
Sorry, I know that this is not a LUA question but I just want to know, and I have been scripting for over 5 hours so I was really tired and confused about everything because I was tired master_kingdom 0 — 3y
Ad

Answer this question