Cant get a good title for this but
for i, v in ipairs(GunGui:GetChildren()) do
if v.ClassName == "TextButton" or "ImageButton" then
v.Activated:Connect(function()
GuiClicked(v, v.Gun.Value)
end)
end
end
even with the if v.ClassName, it somehow still fires it with the local script thats in the gui
Not sure why this is happening