I was trying to make a command that if the player is an admin and they say the command, they obtain the gui. The problem is, the gui is not being given once you say the keyword, and the output wont speak. The script is placed in ServerScriptService, and its child is the ScreenGui. Heres the script:
local admins = {"Prxticles"}
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if player.Name == admins then
if message == "/e leaf" then
script.Leaf:Clone().Parent = player.PlayerGui
end
end
end)
end)
