Hello, I am trying to make a command that makes a Menu GUI pop up, I made the script but I am not sure why it's not working, any help would be greatly appreciated.
local GroupID = 7000168
local MinimumRank = 5
local Menu = game.StarterGui.ScreenGui.Menu
game.Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
if Player:GetRankInGroup(GroupID) >= MinimumRank then
if Message == "!Menu" then
Menu.Visible = true
end
end
end)
end)

1 comment
Thank you so much, I really appreciate the help!