this is what i have so far
script.Parent.Touched:connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid then local player = game.Players:FindFirstChild(hit.Parent.Name)
for i=1, 1 do
for i,v in pairs(game.Players:GetPlayers()) do
for a,b in pairs(v.Character:GetChildren()) do
if b:IsA("Tool") or b:IsA("HopperBin") then
b:Destroy()
end end end end v.Backpack:ClearAllChildren() end end)
in this script every item gets destroyed so far i knowe. I'm a big noob on coding so I hope someone can help me.
Item that i want to remove from players inventory is called "Blue Master Key"

3 comments
this is for roblox game
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
And why destroy all the tools after removing a specific one?