I've been trying to use a script to clone an item to a player's inventory on a mouse click, but none of my attempts have work. Nothing happens, and there are no errors.
clicker = Instance.new("ClickDetector")
a280c = game.Workspace.weapons.A280C
clicker.MouseClick:Connect(function(playerWhoClicked)
local player = playerWhoClicked
local a_clone = a280c:Clone()
a_clone.Parent = player.Character
print("Cloning complete.")
end)
Does anyone know what's wrong with my code?

3 comments
if you are cloning it into their inventory, clone it into their backpack
The ClickDetector doesn’t seem to be parented to anything. If you’re trying to clone your item when a player clicks on an object, then parent the ClickDetector to that object.
It has to go into the players backpack