I FOUND A SOLUTION:
script.Parent.MouseButton1Down:connect(function()
game.ReplicatedFirst.WEAPON:clone().Parent = game.Players.LocalPlayer.Backpack
end)
--Change WEAPON to the weapon name
--Put the weapon in ReplicatedFirst
--This script must be in a localScript, Inside the Button.
I tested it, and somehow it worked.
Thank you all for helping.
|