works sometimes but other times it doesnt
local gune = game.Lighting.Assault.Assaulta.Guna
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.leaderstats.KOs.Value >= 0 then
game.Players.LocalPlayer.Backpack.Guna:Destroy()
game.Players.LocalPlayer.StarterGear.Guna:Destroy()
local clone = gune:Clone()
clone.Parent = game.Players.LocalPlayer.Backpack
local clonea = gune:Clone()
clonea.Parent = game.Players.LocalPlayer.StarterGear
end
end)

1 comment
Maybe check if the gun exists? I'm unsure why else it would only sometimes work.