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

ScreenGui Won't remove itself on screen. What is going on?

Asked by 4 years ago

I am fairly new to scripting. I make games for fun. I am using a Local script.

wait(5)
game.StarterGui.ScreenGui:Destroy()

The script seems to be working, the screen gui destroys under StarterGui but on the screen it stays

1 answer

Log in to vote
0
Answered by 4 years ago

Try this method.

wait(5)
print("Waited 5 seconds.")
game.Players.LocalPlayer.PlayerGui.ScreenGui:Destroy()
game.StarterGui.ScreenGui:Destroy()
print("All deleted in like, 2 ms.")
1
Thank you! It worked! CreatorOfStuff2001 25 — 4y
0
np User#22722 20 — 4y
Ad

Answer this question