I have a GUI in server storage and a script that should make it so when the player chats ":DCommands" it clones it and puts it in their GUI. It doesn't work and I get nothing in the output. Here is the script:
function onChatted(message, speaker)
if message == ":DCommands" and isAdmin[speaker.Name] then
local GUI = game.ServerStorage.CommandGUI:Clone()
GUI.Parent = speaker.PlayerGui
end
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end)
Here is the IsAdmin Table it was causing the code block to not work.
local isAdmin = {["potatoboy9999"] = true, ["RightfulFluff2"] = true, ["diamondflash"] = true, ["12coocoo"] = true, ["Player1"] = true}

2 comments
Try testing in Test Mode instead of Play Solo. I've been having the same problem with Chatted events in Play Solo.
oh, forgot to remove this question. Yeah it a bug, I sent it to roblox