Hello, I am working on a little admin GUI an I cant seem to make my command that makes the GUI pop up to work properly, My GUI is located in a screengui called CmdGUI, under is CmdFrame, under that are 2 GUIs name Page1 & Page 2. I am trying to make a command open page 1 when you say p!cmds however my current script doesnt work. Can you help me make a new script that should function properly? Here us my current script;
`local Command = "p!cmds"
game.Players.LocalPlayer.Chatted:Connect(function(message) if string.match(Command, message) then game.Players.LocalPlayer.PlayerGui["CmdGUI"].Enabled = true else return end
end)`

2 comments
edit: ik i should have the screen gui there, im just being dumb lol
another edit, the command is setup in a local script in my StarterGUI folder