How to I remove a GUI from studio

How can I remove this GUI while I am using studio?

Here is the code: local function OnClick()
script.Parent.Parent:Remove()
end

script.Parent.MouseButton1Click:connect(OnClick)

It gets annoying to have to delete it while I am working on updates.

What exactly do you mean? Couldn’t you just disable the DevelopmentGUI property located inisde the StarterGui service?

2 Likes

You can turn enabled off on the screen GUI when working, and then just enabling it again when you are done.

1 Like

There is an option on the top right corner to hide UI

1 Like

There’s an eye icon right above the viewport screen that lets you toggle the visibility of the UIs in your game:

image

2 Likes

Just select the top UI text then your finished. Or you can set Enabled property to false and insert a simple script that changes the property back to true.

1 Like