So far what I have done is taken a script from a shop button and the script from a keycard door to try and make a brick that, when touched with a tool removes the tool that touched it and then gives you something else. It doesn't work though, this is what I have:
script.Parent.Touched:connect(function(p)
if p.Parent.Name == "Scrap" then
local ItemName = game.Lighting.Box
ItemName:Clone().Parent = p.Backpack
end
end)
I don't know how to make the removing tool either. Any help is appreciated.

4 comments
maybe make ItemName:Clone() a varible so. local item = ItemName:Clone() item.Parent = p.Backpack
Didn't work imagoodlolboyeee, got this error: Backpack is not a valid member of MeshPart "Workspace.Anotherperson_999.Scrap.Handle"
You are trying to check if the thing that touched if it's name is "Scrap". That part is fine, but when you are saying that 'p.Parent', p is basically "Scrap" (if that is the thing that touched it). Scrap does not have 'Backpack'. Because it is an item. You need to get the player who had that item. Then get that player's backpack.
And how do I do that?