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
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
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.")
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thank you! It worked!
np