local Clickdetector = script.Parent:WaitForChild("ClickDetector")
local ToolNames = {"Milk"}
function playerAdded (player)
if player.Name == "Player" then
wait(2)
Clickdetector.MouseClick:Connect(function(Player)
if Player and Player.Character then
if ToolNames then
game.Players.player.Backpack.Milk:remove ()
end
end
end)
end
end

20 comments
This script works but it destroys everything in my inventory (which I only want it to destroy one) and it is player specific (want it to be non-player specific)
So you want it to destroy only one for everyone?
There we go! Updated the script.
It doesn't even remove anything out of my inventory :(
You need something called "Milk"
I have the "Milk" in the server storage and
you need it in your inventory
I do but it the script doesnt remove it
Error? Where did you put the script?
inside a guy's arm, the "milk" is a tool and im trying to remove the milk from the player as if they are giving the milk.
is there an error because it works for me, if it really doesnt work ill make a model
k thank you
Did you change the playername to yours?
Wait now try the script i updated it
k
Thanks it works now. Im new to this site, do you know how to verify answers.
Its right under here, if you are using chrome it wont work. So use edge for now just to accept my answer :)
https://gyazo.com/28a8f490e4a83308a4c5ab2d67b108d0
-1. No explanation was given.
Here I explained! If you could remove the -1 it would be really appreciated because I took alot of time to do this and talking with him. I tried my best at explaining :)