how would I get the value of the actual gun and not just the number?
local guns = game.Lighting.Folder:GetChildren()
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
if hit.Parent.Humanoid.Health > 0 then
local value = math.random(1,#guns)
value.Parent = hit.Parent
end
end
end)
