local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function() --don't mind this
script.Parent.Parent.Visible = false
end) --dont mind this
function parentPressed()
game.ReplicatedStorage.SMG:Clone(function(). --this function aint working
game.ReplicatedStorage.SMG.Parent = player.backpack
end)
end
script.Parent.MouseButton1Down:connect(parentPressed)
This aint working please help
