Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.")

2 comments

1

Thank you! It worked!

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.