I’m trying to make it so that if the parent UI isnt visible, then the main script of it doesn’t run, so it doesnt lag out the game. I really suck at if functions, so if somebody can help me, it’d be great.
Screenshots

I’m trying to make it so that if the parent UI isnt visible, then the main script of it doesn’t run, so it doesnt lag out the game. I really suck at if functions, so if somebody can help me, it’d be great.
Screenshots
nevermind, i was missing some stuff
Just saying but if you are using if you have to add two equal.
Example
if script.Parent.Visible == false then
script.Parent.ActivityCore.Enabled = false
end
Like that
Changes
if script.Parent.Visible = false then
GOES TO
if script.Parent.Visible == false then
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.