It's pretty self explanatory. When the block is touched, a certain gear is removed from the player's backpack (in this case "Sword"). This is the script I was using :
parent = script.Parent
function onTouch(hit)
game.Players.Player.Backpack.Sword:remove()
end
parent.Touched:connect(onTouch)
Not sure what has gone wrong in the script.

1 comment
Are you using a Local or regular script?