--Closes Gui
function onChatted(message, player)
if message == "/Close" then
game.StarterGui.StatusGui.Status.Visible = false
else
game.StarterGui.StatusGui.Status.Visible = true
end
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end)
I might have made an error somewhere but cant seem to find it. I used a similar script to kill the character but this one seems to not work. Is it not possible to use this method to close a Gui? What other options could be used?

2 comments
Uh-oh, StarterGui alert.
Thank you for the answer, this will really help my future scripting and let me carry on working on my game.