GUI only visible to client not server

The GUI is only visible to the client and not the server therefore not allowing the server to destroy/disable a GUI

Client:
image

Server:
image

You can disable the UI from the client side by using the players service.

Local Players = game:GetService(“Players”)

Local player = Players.LocalPlayer

Local UI = Player:WaitForChild(“PlayerGui”)

then treat UI as the starterGUI, and you can disable different containers by using Container.Enabled = false / true

bump​​​​​​

This is because that GUI is created on the client and not replicated to the server, as it doesnt need to be replicated (other players dont usually need to peek at your GUI)

You should control GUI from the client instead. This can be done with LocalScripts.

(side note, it’s not great practice to have multiple admin scripts in your game.)