I have a Hotel and I made a Hotel system and to get the card you have to say :give (username) (number of room) and it gets the card from server storage but the only problem is my receptionist cannot do the :give because they don't have admin but I don't want them to have admin because they could mess around with it and people kicked or banned for no reason. So it there some way where I can get the :give command to everyone? Or at least receptionist and up?
local RR = 10 --Rank requirement to use this command local GiveCommand = ":Give" --Command to give Players.PlayerAdded:Connect(function(Player) if Player:GetRankInGroup(GroupID) >= RR then -- Checks if the player has the required rank Player.Chatted:Connect(function(Message) -- If so, check their chat messages. local LowerMessage = string.lower(Message) -- Makes it so you can say :GiVe if LoadCommand == string.sub(LowerMessage,1,#LoadCommand) then -- Checks if message starts with :Give local PlayerToGive = string.sub(LowerMessage,#LoadCommand+2, 16) -- Gets the Player end end) end end)