-- events


EVENTS.Gun.Event:connect(function(action, ...)
	if action == "Enable" then
		currentSize, currentAmmo	= ...
		
		Update()
		GUN_GUI.Visible	= true
		
		if ammoConnection then
			ammoConnection:Disconnect()
			ammoConnection	= nil
		end
		
		if character then
			ammoConnection	= ammo[currentSize].Changed:connect(function()
				Update()
			end)
		end
	elseif action == "Disable" then
		GUN_GUI.Visible	= false
	elseif action == "Update" then
		currentAmmo	= ...
		Update()
	end
end)

PLAYER.CharacterAdded:connect(HandleCharacter)
