Hi. so i made it so if you click a gun object, it gives you the gun. But it does not work. Why? Script in serverscriptservice
local events = game.ReplicatedStorage.GunEvents
local guns = game.ReplicatedStorage.Guns
events.AR48.OnServerEvent:Connect(function(player)
local gun = guns.Rifle.AR48:Clone()
gun.Parent = player.Backpack
print("got gun!")
end)
script in gun
script.Parent.MouseClick:Connect(function()
local event = game.ReplicatedStorage.GunEvents.AR48
event:FireServer()
print("fired")
end)

2 comments
Did you get any errors in the output?
.Nope