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

How do I completely like get rid of a Item like not visible in the explorer anymore?

Asked by 5 years ago
Edited 5 years ago

I tried using :Destroy() but I still can see the item in the explorer I want to get rid of it is there any way?

So for example what I did was put a Screen Gui into StarterGui so That I can put a TextButton Inside ScreenGui to put Destroy() in it

Let me show you the script

TextB = script.Parent -- This is the TextButton because the local script is a child of TextButton

TextB.MouseButton1Click:Connect(function()
TextB:Destroy()--Destroy this, but it doesn't completely destroy it as I can see its name in the explorer
0
What are you trying to destroy? PolyyDev 214 — 5y
0
If you don't post code, we can't help you figure out what you're doing wrong, because you're definitely doing something wrong. protectiveebob 221 — 5y
0
No Like what I mean is The Destroy() works for sure Im just wondering because I put a guy that If i Click on the GuI it gets destroyed but I can see it still in the explorer I want it completely gone from the explorer know what I'm saying? User#22788 5 — 5y
0
Make sure ResetOnSpawn property of the ScreenGui is set to false. User#19524 175 — 5y
View all comments (5 more)
0
You still never showed us what you're talking about. Paste some code, show a screenshot. protectiveebob 221 — 5y
0
Ok Let me post User#22788 5 — 5y
0
There User#22788 5 — 5y
2
When you look at explorer are you looking in startergui or playergui, playergui is what the player spawns in with and is not modified by the scripts inside of it, playergui is where the actually executed player gui is Potatofoox 129 — 5y
0
^Yeah, assuming you put an end) at the bottom it should execute correctly Vulkarin 581 — 5y

Answer this question