I want to make a receptionist system in which whenever a player says “give (player) room (number)” however that’s not the point right now, I want it so if the player already has a room (tool) in their inventory; they won’t be able to get another one until that tool is removed from their inventory, how would I do so?
You can use a FindFirstChild check in that player’s backpack, if there is not a Key in their backpack already give it to them, else just return end
Well depending on how you want to do it. You can easily check if the player owns the tool, like such ;
local ToolName = "Drink" -- tool name
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
if Backpack:FindFirstChild(ToolName) or StarterGear:FindFirstChild(ToolName)then --checks to see if they own it
-- action here
else
-- other action here
end
end)
end)
Its sorta easy, but if you were trying to check if they just own a tool in general I think their is ways for that.
2 Likes
Cheers, I’ll attempt it when I have time.